You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2020/01/03 08:24:45 UTC

[GitHub] [incubator-brpc] zptan edited a comment on issue #975: pthread模式能否使用server-thread-local

zptan edited a comment on issue #975: pthread模式能否使用server-thread-local
URL: https://github.com/apache/incubator-brpc/issues/975#issuecomment-570498494
 
 
   Issue reopened.
   
   @jamesge 我们发现了问题。。。
   
   在pthread模式下,有些thread拿不到thread-local storage,经过排查发现,server创建了FLAGS_usercode_backup_threads个pthread,这些thread去serve request的时候无法获取thread-local storage
   
   在`brpc::thread_local_data()`里面tl_options是NULL:
   `tl_options =
         static_cast<const Server::ThreadLocalOptions*>(
             bthread_get_assigned_data());`
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org