OSGetSemaphoreCount

Syntax

#include <cafe/os.h>

s32  OSGetSemaphoreCount( OSSemaphore* sem );

Parameters

sem Pointer to a semaphore.

Return Values

Returns the current semaphore count.

Description

Gets the current semaphore count. Because the value is not guaranteed to be valid when the function returns, the returned value should just be used as an estimate for program debugging.

Do Not Call From

None.

See Also

OSInitSemaphore
OSSignalSemaphore
OSTryWaitSemaphore
OSWaitSemaphore

Revision History

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


CONFIDENTIAL