OSWaitSemaphore

Syntax

#include <cafe/os.h>

s32  OSWaitSemaphore( OSSemaphore* sem );

Parameters

sem Pointer to a semaphore.

Return Values

The previous semaphore count.

Description

Decrements the specified semaphore count. If the semaphore count is less than or equal to 0, the calling thread blocks until it can decrement the semaphore count.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

OSInitSemaphore
OSGetSemaphoreCount
OSSignalSemaphore
OSTryWaitSemaphore

Revision History

2013/05/08 Automated cleanup pass.
2012/08/01 Cleanup pass.
2010/08/30 Initial version.


CONFIDENTIAL