You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/08/24 04:12:27 UTC

[GitHub] [incubator-brpc] hairet commented on pull request #1031: add support for rwlock

hairet commented on PR #1031:
URL: https://github.com/apache/incubator-brpc/pull/1031#issuecomment-1225167321

   > 这个实现性能有很大优化吧。这个无脑 butex 唤醒有问题吧?理想状态下应该有个 flag 标识有没有真的有 bthread 在等待。
   
   担心这个话,我的提交里改一行就可以了,butex_wake_all改成butex_wake即可。flag的话,我理解没有必要了,因为butex_wake自身有判空逻辑,开销也很低,加冗余逻辑就复杂了


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