yanglimingcn commented on issue #2885:
URL: https://github.com/apache/brpc/issues/2885#issuecomment-2646947876

   // 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));
   
   用这两个函数,在启动worker线程的时候做设定是否能行呢?


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