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

Method current_tid

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

Source from the content-addressed store, hash-verified

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
172 { return butil::cpuwide_time_ns() - _cur_meta->cpuwide_start_ns; }

Callers 5

butex_waitFunction · 0.80
bthread_selfFunction · 0.80
joinMethod · 0.80
sched_toMethod · 0.80
usleepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected