zhuchong0329 opened a new issue #1070: TimerThread的run_and_delete中用了memory_order_relaxed内存序,是否会导致与unschedule的竞争问题 URL: https://github.com/apache/incubator-brpc/issues/1070 **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)** 在braft的代码中,依赖于bthread_timer_del返回0来释放一些变量的内存。但是我研究TimerThread觉得这里似乎不是100%安全的,如下图所示。  **Describe the solution you'd like (描述你期望的解决方法)** 用更安全的内存序 **Describe alternatives you've considered (描述你想到的折衷方案)** **Additional context/screenshots (更多上下文/截图)**
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
