yanglimingcn commented on code in PR #2819: URL: https://github.com/apache/brpc/pull/2819#discussion_r2062971688
########## src/bthread/task_group.cpp: ########## @@ -429,12 +429,19 @@ int TaskGroup::start_foreground(TaskGroup** pg, } else { // NOSIGNAL affects current task, not the new task. RemainedFn fn = NULL; - if (g->current_task()->about_to_quit) { + auto& cur_attr = g->_cur_meta->attr; + if (cur_attr.flags & BTHREAD_GLOBAL_PRIORITY) { + fn = priority_to_run; + } else if (g->current_task()->about_to_quit) { fn = ready_to_run_in_worker_ignoresignal; } else { fn = ready_to_run_in_worker; } - ReadyToRunArgs args = { g->_cur_meta, (bool)(using_attr.flags & BTHREAD_NOSIGNAL) }; + ReadyToRunArgs args = { + g->tag(), Review Comment: 格式化一下这块? -- 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