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


##########
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:
      bool except_state = true;是不是应该在这个循环里



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