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

Method set_remained

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

Source from the content-addressed store, hash-verified

120 // the target to be suspended already.
121 typedef void (*RemainedFn)(void*);
122 void set_remained(RemainedFn cb, void* arg) {
123 _last_context_remained = cb;
124 _last_context_remained_arg = arg;
125 }
126
127 // Suspend caller for at least |timeout_us| microseconds.
128 // If |timeout_us| is 0, this function does nothing.

Callers 6

butex_waitFunction · 0.80
exchangeMethod · 0.80
task_runnerMethod · 0.80
start_foregroundMethod · 0.80
usleepMethod · 0.80
yieldMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected