yanglimingcn commented on PR #2476:
URL: https://github.com/apache/brpc/pull/2476#issuecomment-1868782196

   > > @wwbmmm 
我觉得brpc内部启动的协程,有些地方需要把bthread_tag设置正确,否则会存在跨线程池执行的问题,特别是socket.cpp这块。 
其它地方我把握的不是很准确,请仔细review一下。
   > 
   > 
类似BTHREAD_ATTR_NORMAL这些,能不能默认都设置成在本线程池执行?比如把tag的初始值设置成一个特殊值,表示在本线程池执行。因为BTHREAD_ATTR_NORMAL这些不只是在brpc框架会用,业务代码也会用到
   
   
我这边加了一个BTHREAD_TAG_INVALID,是BTHREAD_ATTR_NORMAL这些的默认值,如果用户启动的协程用了这些的话,会在默认的local线程池中执行。


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