brokensword2018 opened a new issue #1249:
URL: https://github.com/apache/incubator-brpc/issues/1249
Dear all.
```cpp
// True iff current task is the one running run_main_task()
bool is_current_main_task() const { return current_tid() == _main_tid; }
// True iff current task is in pthread-mode.
bool is_current_pthread_task() const
{ return _cur_meta->stack == _main_stack; }
```
每个worker线程应该都是执行,run_main_task. current_tid() == _main_tid 不是和
_cur_meta->stack == _main_stack等效的吗? True iff current task is in
pthread-mode这句话不是很理解。
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]