OSUnlockMutex

C Specification

#include <revolution/os.h>
void OSUnlockMutex (OSMutex* mutex);

Arguments

mutex Pointer to mutex.

Return Values

None.

Description

The calling thread unlocks the mutex. The calling thread must own the mutex.

If the calling thread has locked this mutex N times, the mutex will only be unlocked on the Nth call to the OSUnLockMutex function.

If the calling thread had a temporarily higher priority because a higher priority thread requested this mutex, the priority will be recalculated (may not result in the standard priority because it depends on other mutexes that are retained).

If the mutex is unlocked, all threads that this mutex blocks get executable status and execute according to priority.

See Also

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

Revision History

2006/03/01 Initial version.


CONFIDENTIAL