OSWaitSemaphore

Syntax

#include <revolution/os.h>

s32  OSWaitSemaphore( OSSemaphore* sem );

Arguments

sem Pointer to a semaphore.

Return Values

The previous semaphore count.

Description

Decrements the specified semaphore count. If the semaphore count is less than zero, the calling thread blocks until it can decrement the semaphore count.

See Also

Thread Functions, Thread Synchronization Functions

Revision History

2006/03/01 Initial version.


CONFIDENTIAL