OSInitSemaphore

Syntax

#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. The initial semaphore count is specified by count. Be aware that although count can be negative, it must be greater than or equal to zero.

See Also

Thread Functions, Thread Synchronization Functions

Revision History

2006/03/01 Initial version.


CONFIDENTIAL