#include <revolution/os.h>
s32 OSTryWaitSemaphore ( OSSemaphore* sem );
|
Pointer to a semaphore. |
Previous semaphore count. A positive return value indicates that decrementing the semaphore was successful. Otherwise, the semaphore status is unchanged.
If the semaphore count is greater than zero, the count is decremented. Otherwise, this function returns without taking any action.
Thread Functions, Thread Synchronization Functions
2006/03/01 Initial version.
CONFIDENTIAL