wwbmmm commented on code in PR #3168:
URL: https://github.com/apache/brpc/pull/3168#discussion_r2605278158
##########
src/bthread/task_group.cpp:
##########
@@ -179,7 +194,17 @@ bool TaskGroup::wait_task(bthread_t* tid) {
if (steal_task(tid)) {
return true;
}
- _pl->wait(st);
+ // Instead of waiting for signal, we shall wake up if there's a user
idle task here.
Review Comment:
This code is repeated twice. Maybe wrap it into a helper function.
--
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]