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-unsubscr...@brpc.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org