hairet commented on issue #688: bthread_cond_signal中的一点疑问
URL: https://github.com/apache/incubator-brpc/issues/688#issuecomment-531625400
 
 
   
bthread_cond_wait里面会判断ic->seq,即如果ic->seq被fetch_add了,则存在一个可能性是wait的bthread在butex_wait里面还未进入代码阻塞(pthread的butex_wait_from_pthread或者bthread的sched),已经因为expected_value被改变而直接退出bthread_cond_wait。

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to