MCPcopy Create free account
hub / github.com/cppla/ServerStatus / thread_yield

Function thread_yield

server/src/system.c:407–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407void thread_yield()
408{
409#if defined(CONF_FAMILY_UNIX)
410 sched_yield();
411#elif defined(CONF_FAMILY_WINDOWS)
412 Sleep(0);
413#else
414 #error not implemented
415#endif
416}
417
418void thread_sleep(int milliseconds)
419{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected