MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / do_thread_usleep

Function do_thread_usleep

thread/thread.cpp:1420–1426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1418#pragma GCC diagnostic pop
1419
1420 __attribute__((noinline))
1421 static int do_thread_usleep(Timeout timeout, RunQ rq) {
1422 auto r = prepare_usleep(timeout, nullptr, rq);
1423 switch_context(r.from, r.to);
1424 assert(r.from->waitq == nullptr);
1425 return r.from->set_error_number();
1426 }
1427 static int do_shutdown_usleep(Timeout timeout, RunQ rq) {
1428 timeout.timeout_at_most(10 * 1000);
1429 int ret = do_thread_usleep(timeout, rq);

Callers 2

do_shutdown_usleepFunction · 0.85
thread_usleepFunction · 0.85

Calls 3

prepare_usleepFunction · 0.85
switch_contextFunction · 0.85
set_error_numberMethod · 0.80

Tested by

no test coverage detected