yanglimingcn commented on code in PR #3122:
URL: https://github.com/apache/brpc/pull/3122#discussion_r2458385159
##########
src/bthread/task_control.cpp:
##########
@@ -74,8 +77,10 @@ void run_tagged_worker_startfn(bthread_tag_t tag) {
struct WorkerThreadArgs {
WorkerThreadArgs(TaskControl* _c, bthread_tag_t _t) : c(_c), tag(_t) {}
+
TaskControl* c;
bthread_tag_t tag;
+ unsigned cpuId;
Review Comment:
感觉不需要在参数里面传递cpuId这些了,在worker_thread里面,有个_next_worker_id和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: [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]