fausturs commented on issue #2726:
URL: https://github.com/apache/brpc/issues/2726#issuecomment-2272701098

   > 试一下#2727 看看还有没有问题。
   @chenBright 
   
   首先,感谢你的回复与支持。
   
   https://github.com/apache/brpc/issues/2726
   这里我给了一个小demo用于复现这个栈。
   
   
   
从给出的修复来看,似乎是通过宏NO_PTHREAD_MUTEX_HOOK控制是否去覆盖pthread的符号。那么完全不覆盖pthread的mutex符号的时候,我想本issue的这个问题应该OK了。
   
   
   此外我有一点点好奇,对于brpc中,为什么要去hack 
pthread中的mutex相关符号呢,好处是什么?是能够在真正调用pthread之前,能够进行一些额外的统计信息吗?那是不是当我设置NO_PTHREAD_MUTEX_HOOK时,对pyhread
 mutex的操作,可能会更快?


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

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