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

Function lock_wait

server/src/system.c:488–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488void lock_wait(LOCK lock)
489{
490#if defined(CONF_FAMILY_UNIX)
491 pthread_mutex_lock((LOCKINTERNAL *)lock);
492#elif defined(CONF_FAMILY_WINDOWS)
493 EnterCriticalSection((LPCRITICAL_SECTION)lock);
494#else
495 #error not implemented on this platform
496#endif
497}
498
499void lock_release(LOCK lock)
500{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected