dyinnz opened a new issue #1229: URL: https://github.com/apache/incubator-brpc/issues/1229
**Describe the bug (描述bug)** **To Reproduce (复现方法)** We may lock a std::recursive_mutex server times during a call. A deadlock occurs if bthread switched: 1. First, a bthread owns a std::recursive_mutex, and does something. 2. Then, this bthread switches to another (real) thread, and tries to lock again. 3. OK, here is a deadlock or a lock leaking. The std::recursive_mutex is hold by the old real thread, but the new thread would hang here if try to lock again. **Expected behavior (期望行为)** i thought that brpc could not support std::recursive_mutex after reading code and implementation. I ask whether and when this pr https://github.com/apache/incubator-brpc/pull/749 will be merged ? So we could replace std::recursive_mutex in our project. **Versions (各种版本)** OS: linux 4.14 Compiler: gcc 10.2.0, c++2a brpc: n/a protobuf: n/a ---------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
