brpc源碼學習-butex

由於brpc中引入了bthread,如果在bthread中使用了mutex,那麼將會掛起當前pthread,導致該bthread_worker無法執行其他bthread,因此類似pthread和futex的關係,brpc引入butex來實現bthread粒度的掛起和喚醒。 首先看下butex中使用到的FastPthreadMutex,FastPthreadMutex是基於futex實現的pthre
相關文章
相關標籤/搜索