#include <cafe/os.h> s32 OSTryWaitSemaphore ( OSSemaphore* sem );
|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.
2013/05/08 Automated cleanup pass.
2012/08/01 Cleanup pass.
2010/08/30 Initial version.