Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/brpc
/ is_main_task
Method
is_main_task
src/bthread/task_group.h:345–347 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
343
void set_pl(ParkingLot* pl) { _pl = pl; }
344
345
static bool is_main_task(TaskGroup* g, bthread_t tid) {
346
return g->_main_tid == tid;
347
}
348
349
TaskMeta* _cur_meta{NULL};
350
Callers
1
cumulated_cputime_ns
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected