MCPcopy Create free account
hub / github.com/ddnet/ddnet / thread_yield

Function thread_yield

src/base/thread.cpp:113–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void thread_yield()
114{
115#if defined(CONF_FAMILY_UNIX)
116 dbg_assert(sched_yield() == 0, "sched_yield failure");
117#elif defined(CONF_FAMILY_WINDOWS)
118 Sleep(0);
119#else
120#error not implemented
121#endif
122}
123
124void thread_detach(void *thread)
125{

Callers 2

TEST_FFunction · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.68
TESTFunction · 0.68