zhengJade commented on code in PR #2819:
URL: https://github.com/apache/brpc/pull/2819#discussion_r1847934237


##########
src/bthread/task_control.cpp:
##########
@@ -401,6 +402,17 @@ int TaskControl::_destroy_group(TaskGroup* g) {
 
 bool TaskControl::steal_task(bthread_t* tid, size_t* seed, size_t offset) {
     auto tag = tls_task_group->tag();
+    bool except_state = true;
+    // epoll tid should be stolen first.
+    for (auto &epoll_state : _epoll_tid_states[tag]) {
+        if (epoll_state.second.compare_exchange_strong(

Review Comment:
   是的,之前因为考虑只有一个 tag,设置在外面了,我修改一下



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

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


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

Reply via email to