OSInitSemaphoreEx

Syntax

#include <cafe/os.h>

void OSInitSemaphoreEx( OSSemaphore* sem, s32 count, char * name );

Parameters

sem Pointer to a semaphore.
count Initial semaphore count.
name Debug name or NULL.

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.

Do Not Call From

Multiple threads This function is not thread-safe.

See Also

OSGetSemaphoreCount
OSSignalSemaphore
OSTryWaitSemaphore
OSWaitSemaphore

Revision History

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


CONFIDENTIAL