weingithub opened a new issue, #2456:
URL: https://github.com/apache/brpc/issues/2456

   **Describe the bug (描述bug)**
   
   bthread在A线程中持有了pthread_mutex的锁 
L1,之后执行了好几层的业务调用逻辑(可能有bthread_sleep调用),在unlock 
L1时,触发了pthread不一致的assert,导致程序出core
   
   **To Reproduce (复现方法)**
   在bthread中对pthread_mutex加锁,之后调用bthread_sleep,再unlock时,增加pthread一致性的检查
   
   **Expected behavior (期望行为)**
   pthread一致?
   
   **Versions (各种版本)**
   OS: centos
   Compiler:  gcc 4.8
   brpc:
   protobuf:
   
   **Additional context/screenshots (更多上下文/截图)**
   
   想知道,在这种情况下,在bthread_sleep之后,是否有可能会发生工作线程的切换??
   


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

Reply via email to