You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by "sikey647 (via GitHub)" <gi...@apache.org> on 2024/11/05 03:14:33 UTC

[I] bthread::Mutex 和 bthread::butex 在使用上有啥区别吗 (brpc)

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

   在不同项目里看到分别有用bthread::Mutex和bthread::butex,这两者哪些区别,分别适合在哪些场景使用。


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

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


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


Re: [I] bthread::Mutex 和 bthread::butex 在使用上有啥区别吗 (brpc)

Posted by "yanglimingcn (via GitHub)" <gi...@apache.org>.
yanglimingcn closed issue #2815: bthread::Mutex 和 bthread::butex 在使用上有啥区别吗
URL: https://github.com/apache/brpc/issues/2815


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

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


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


Re: [I] bthread::Mutex 和 bthread::butex 在使用上有啥区别吗 (brpc)

Posted by "yanglimingcn (via GitHub)" <gi...@apache.org>.
yanglimingcn commented on issue #2815:
URL: https://github.com/apache/brpc/issues/2815#issuecomment-2456145028

   butex是很底层的源语言,类似于futex。Mutex类似于std::mutex,在开发过程中应该尽量使用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-unsubscribe@brpc.apache.org

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


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