WenJie872 commented on code in PR #3122:
URL: https://github.com/apache/brpc/pull/3122#discussion_r2454167248
##########
src/bthread/task_control.cpp:
##########
@@ -42,6 +42,9 @@ DEFINE_int32(task_group_runqueue_capacity, 4096,
DEFINE_int32(task_group_ntags, 1, "TaskGroup will be grouped by number ntags");
DEFINE_bool(task_group_set_worker_name, true,
"Whether to set the name of the worker thread");
+DEFINE_bool(thread_affinity, false, "Whether to Bind Cores");
+DEFINE_string(cpu_set , "",
Review Comment:
When cpu_set is an empty string, the value of cpu_set is all cores of the
machine instead of thread_affinity disabled by default.
If you only need a flag, I can change it.
--
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]