You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/09/27 12:37:16 UTC

[GitHub] [incubator-brpc] luobuda commented on issue #670: 关于wait_task卡死问题

luobuda commented on issue #670:
URL: https://github.com/apache/incubator-brpc/issues/670#issuecomment-927831424


   > > 最近我们也遇到这个问题。全部在wait_task,添加的task却没有执行(通过日志判断是否执行)
   > 
   > 我们的用法是`braft::run_closure_in_bthread(&closure); closure.wait();` closure里面放了一个stl的mutex和condition_var,wait就是wait condition_var,run的时候去唤醒condition_var
   
   你这个应该是bthread和pthread的同步原语混用了吧


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org