MCPcopy Create free account
hub / github.com/apache/brpc / is_current_pthread_task

Method is_current_pthread_task

src/bthread/task_group.h:177–178  ·  view source on GitHub ↗

True iff current task is in pthread-mode.

Source from the content-addressed store, hash-verified

175 bool is_current_main_task() const { return current_tid() == _main_tid; }
176 // True iff current task is in pthread-mode.
177 bool is_current_pthread_task() const
178 { return _cur_meta->stack == _main_stack; }
179
180 // Active time in nanoseconds spent by this TaskGroup.
181 int64_t cumulated_cputime_ns() const;

Callers 9

butex_waitFunction · 0.80
bthread_fd_waitFunction · 0.80
bthread_fd_timedwaitFunction · 0.80
fd.cppFile · 0.80
exchangeMethod · 0.80
bthread_usleepFunction · 0.80
bthread_yieldFunction · 0.80
start_foregroundMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected