OSFastMutex_TryLock

Syntax

#include <cafe/os.h>

BOOL OSFastMutex_TryLock (OSFastMutex* fastMutex);

Parameters

fastMutex Pointer to fast mutex.

Return Values

Returns TRUE if the fast mutex is successfully locked. Otherwise, returns FALSE.

Description

The calling thread tries to lock the fast mutex that fastMutex specifies. FALSE is returned if the specified fast mutex is already locked.

There are several major differences between a mutex and a fast mutex.

Do Not Call From

Callbacks Do not call this function from any callback function.

See Also

OSFastCond_Init
OSFastCond_Signal
OSFastCond_Wait
OSFastMutex_Init
OSFastMutex_Lock
OSFastMutex_Unlock

Revision History

2013/04/24 Initial version.


CONFIDENTIAL