OS_UnlockMutex


C Specification

#include <nitro/os.h>

void OS_UnlockMutex( OSMutex* mutex );

Description

Releases Mutex

The thread calling this function must be the mutex owner.

However, when the calling thread has locked mutex n times, only the mutex lock by the nth OS_LockMutex() is released.

When the thread locking mutex is ended with OS_ExitThread() that mutex is automatically unlocked.

Arguments

mutex Pointer to the Mutex structure

Return Values

None

See Also

OS_InitMutex, OS_LockMutex, OS_TryLockMutex, OS_ExitThread

Revision History

04/05/2004 Added description of mutex unlock with OS_ExitThread() 12/01/2003 Initial Version