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/09/22 07:43:24 UTC

[GitHub] [incubator-brpc] gydong commented on issue #1249: 关于is_current_pthread_task 这个函数的疑问

gydong commented on issue #1249:
URL: https://github.com/apache/incubator-brpc/issues/1249#issuecomment-696561662


   两个条件不等价, _cur_meta->stack == _main_stack 成立的时候,current_tid() == _main_tid 不一定成立。有些情况下bthread会复用main task 的堆栈,可以读一下ending_sched这个函数的源码理解一下


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



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