OSInitSemaphore

C Specification

#include <revolution/os.h>
void OSInitSemaphore( OSSemaphore* sem, s32 count );

Arguments

sem Pointer to a semaphore.
count Initial semaphore count. 

Return Values

None.

Description

Initializes semaphores. count specifies the initial value of the semaphore count. Although count can be a negative value, it should usually be ≥ 0.

See Also

Thread Functions, Thread Synchronization Functions

Revision History

03/01/2006 Initial version.