wwbmmm commented on code in PR #1751:
URL: https://github.com/apache/incubator-brpc/pull/1751#discussion_r858275253


##########
src/bthread/butex.cpp:
##########
@@ -284,15 +286,19 @@ int butex_wake(void* arg, bool nosched) {
         if (!nosched) {
             TaskGroup::exchange(&g, bbw->tid);

Review Comment:
   
exchange的时候会挂起原来的bthread,这里nosignal的含义是是否立即调度原来的bthread,可以给exchange加个参数。就像bthread_start_urgent也可以传nosignal。



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to