OSTryLockMutex

Syntax

#include <revolution/os.h>

BOOL OSTryLockMutex(OSMutex* mutex);

Arguments

mutex Pointer to mutex.

Return Values

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

Description

The calling thread tries to lock the mutex. Returns FALSE if the mutex is already locked.

See Also

Thread Functions, Thread Synchronization Functions, OSInitCond, OSInitMutex, OSLockMutex, OSSignalCond, OSUnlockMutex, OSWaitCond

Revision History

2006/03/01 Initial version.


CONFIDENTIAL