jinshuai86 commented on issue #2203:
URL: https://github.com/apache/brpc/issues/2203#issuecomment-3139005685

   > > [@wwbmmm](https://github.com/wwbmmm) 想问下,如果 bthread 只调用了阻塞 pthread 
的函数(read、write、mutex_lock等)或者发起了一次 RPC ,在 bthread 和 pthread 等待期间或者被唤醒后,会触发当前 
bthread 切换到其它 pthread 执行吗?
   > 
   > 阻塞的pthread函数不会切换, 发起rpc或者bthread::join等操作可能会触发切换
   
   当前维护的一个 brpc 老项目用到了 thread_local,如果向下游发起 rpc 会触发当前 bthread 切换 
pthread,应该早就出问题了。但看文档和一些 issue 中提到会切换。所以这里不确定:(


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to