zhengJade commented on code in PR #2819: URL: https://github.com/apache/brpc/pull/2819#discussion_r2041499486
########## src/bthread/task_control.cpp: ########## @@ -430,6 +435,11 @@ 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(); + + if (_priority_qs[tag].steal(tid)) { Review Comment: > 所有线程都访问这个是否会造成全局竞争? @wwbmmm 这里的 _priority_qs 我记得本身就是线程安全的 -- 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