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

   > 这样会有会有某些本来需要使用BTHREAD_TAG_DEFAULT的地方误用了bthread_self_tag()呢? 
如果担心漏掉是否可以把初始值设置成BTHREAD_TAG_INVALID,然后在每个用到的地方显式设置?
   
   
bthread_self_tag正常会返回default,只要主动设置了其它的tag的上下文,在这个tag的上下文执行,才会设置成非default的这个tag。所以有tag需求的时候默认希望socket的tag和上下文一致是合理的。
   如果确实希望socket的tag和上下文的tag不一致,那才需要特别的设置。


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