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

Method yield

src/bthread/task_group.cpp:1121–1126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119}
1120
1121void TaskGroup::yield(TaskGroup** pg) {
1122 TaskGroup* g = *pg;
1123 ReadyToRunArgs args = { g->tag(), g->_cur_meta, false };
1124 g->set_remained(ready_to_run_in_worker, &args);
1125 sched(pg);
1126}
1127
1128void print_task(std::ostream& os, bthread_t tid, bool enable_trace,
1129 bool ignore_not_matched = false) {

Callers

nothing calls this directly

Calls 2

tagMethod · 0.80
set_remainedMethod · 0.80

Tested by

no test coverage detected