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

Method wait

thread/thread.cpp:1648–1654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1646 return (*perrno == -1) ? 0 : -1;
1647 }
1648 int waitq::wait(Timeout timeout)
1649 {
1650 static_assert(sizeof(q) == sizeof(thread_list), "...");
1651 auto lst = (thread_list*)&q;
1652 int ret = thread_usleep(timeout, lst);
1653 return waitq_translate_errno(ret);
1654 }
1655 int waitq::wait_defer(Timeout timeout, void(*defer)(void*), void* arg) {
1656 static_assert(sizeof(q) == sizeof(thread_list), "...");
1657 auto lst = (thread_list*)&q;

Callers 15

do_resolveMethod · 0.45
curl_performFunction · 0.45
gethostbyname_nbFunction · 0.45
client_testFunction · 0.45
s_client_testFunction · 0.45
client_testFunction · 0.45
s_client_testFunction · 0.45
TESTFunction · 0.45
wait_completionMethod · 0.45
mainFunction · 0.45

Calls 3

waitq_translate_errnoFunction · 0.85
cvar_do_waitFunction · 0.85
thread_usleepFunction · 0.70

Tested by 15

client_testFunction · 0.36
s_client_testFunction · 0.36
client_testFunction · 0.36
s_client_testFunction · 0.36
TESTFunction · 0.36
task_semaphoreFunction · 0.36
ph_task_semaphoreFunction · 0.36
task_asyncFunction · 0.36
semaphore_test_holdFunction · 0.36
semaphore_test_catchFunction · 0.36