#include <revolution/os.h> s32 OSTryWaitSemaphore( OSSemaphore* sem );
sem |
Pointer to a semaphore. |
|---|
The previous semaphore count. Decrementing the semaphore was successful if the return value is positive. Otherwise, semaphore status is unchanged.
If the specified semaphore count is greater than zero, the count is decremented. Otherwise, this function returns without doing anything.
Thread Functions, Thread Synchronization Functions
2006/03/01 Initial version.
CONFIDENTIAL