gamezhoulei commented on issue #2745:
URL: https://github.com/apache/brpc/issues/2745#issuecomment-2317196958

   > 可以的,brpc有个函数: // 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));
   > 
   > 可以在这个函数里面完成绑核的工作。
   
   好的, 感谢. 只要我spdk和brpc设置不同的core, 就好了.


-- 
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

Reply via email to