You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Add a startup function that each pthread worker will run at the beginning
// To run code at the end, use butil::thread_atexit()
// Returns 0 on success, error code otherwise.
extern int bthread_set_worker_startfn(void (*start_fn)());
// Add a startup function with tag
extern int bthread_set_tagged_worker_startfn(void (*start_fn)(bthread_tag_t));
// Add a startup function that each pthread worker will run at the beginning // To run code at the end, use butil::thread_atexit() // Returns 0 on success, error code otherwise. extern int bthread_set_worker_startfn(void (*start_fn)());
// Add a startup function with tag extern int bthread_set_tagged_worker_startfn(void (*start_fn)(bthread_tag_t));
Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)
brpc在启动任务时,怎么将启动的worker调度到别的CPU上,而不是默认的当前pthread所在的CPU
Describe the solution you'd like (描述你期望的解决方法)
在brpc启动时,通过某个参数来设置CPU亲和性,可以选择打开或关闭
Additional context/screenshots (更多上下文/截图)
The text was updated successfully, but these errors were encountered: