next up previous contents
Next: 10 Condition Variables Up: 9 Mutexes Previous: 9.12 fluke_mutex_trylock: attempt to

9.13 fluke_mutex_unlock: unlock a mutex object

SYNOPSIS

void fluke_mutex_unlock(fluke_mutex_t *mutex);

DESCRIPTION

Release a mutex.

PARAMETERS

mutex
The mutex to unlock.

ERRORS

If any of the following errors is detected by the Fluke implementation, it causes the current thread to take a synchronous exception with one of the following codes. All of these have an implicit FLUKE_INSANITY_ prefix.
NO_OBJECT
mutex does not point to an active object.
NOT_MUTEX
The object pointed to by mutex is not a mutex object.
INVALID_OBJECT
The state of the mutex object has become invalid.
MUTEX_NOT_LOCKED
The mutex is not currently locked.
MUTEX_NOT_OWNER
The mutex is currently held, but not by the current thread.



Utah Flux Research Group