liupengs commented on issue #893: fix bug: bthread_cond_timedwait not return 
when timeout
URL: https://github.com/apache/incubator-brpc/pull/893#issuecomment-522990934
 
 
   这个问题在我们使用场景中出现频率挺高,我们在百度内部和社区提 issues 都是一直无人理。
   
   问题根源就是函数 erase_from_butex 和 wait_for_butex 中操作  container 的顺序不确定, 
理论上只需保证操作container 的顺序 或 添加辅助变量记录状态, 就可以解决这个问题。 当前我修复的版本在内部一直运行良好。
   
   但是如 #617 中讨论的由于  butex_requeue 的逻辑掺杂, 导致修复困难, 加上我还没有分析butex_requeue代码, 所以这个 
pull request 可以暂时搁置。

----------------------------------------------------------------
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