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

Method current_task

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

Meta/Identifier of current task in this group.

Source from the content-addressed store, hash-verified

166#endif
167 // Meta/Identifier of current task in this group.
168 TaskMeta* current_task() const { return _cur_meta; }
169 bthread_t current_tid() const { return _cur_meta->tid; }
170 // Uptime of current task in nanoseconds.
171 int64_t current_uptime_ns() const

Callers 10

~KeyTableListFunction · 0.80
bthread_setspecificFunction · 0.80
bthread_getspecificFunction · 0.80
butex_wait_from_pthreadFunction · 0.80
butex_waitFunction · 0.80
exchangeMethod · 0.80
bthread_about_to_quitFunction · 0.80
start_foregroundMethod · 0.80
usleepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected