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

Function semaphore_init

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

Source from the content-addressed store, hash-verified

510#if !defined(CONF_PLATFORM_MACOSX)
511 #if defined(CONF_FAMILY_UNIX)
512 void semaphore_init(SEMAPHORE *sem) { sem_init(sem, 0, 0); }
513 void semaphore_wait(SEMAPHORE *sem) { sem_wait(sem); }
514 void semaphore_signal(SEMAPHORE *sem) { sem_post(sem); }
515 void semaphore_destroy(SEMAPHORE *sem) { sem_destroy(sem); }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected