You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@brpc.apache.org by "chenBright (via GitHub)" <gi...@apache.org> on 2026/04/11 13:16:18 UTC

Re: [I] 【咨询】bthread 互斥锁为什么不像 pthread 互斥锁一样实现递归锁(可重入锁)? (brpc)

chenBright commented on issue #3194:
URL: https://github.com/apache/brpc/issues/3194#issuecomment-4229485767

   > 为什么不做实现呢?
   
   可能是重入锁场景比较少就没实现吧。
   
   > 参考 pthread,基于 bthread 封装一个实现,添加 owner id 和ref_ count 来实现 bthread 级别的递归锁,有这样的实现案例吗?
   
   可参考 pthread 实现。


-- 
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: issues-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@brpc.apache.org
For additional commands, e-mail: issues-help@brpc.apache.org