next up previous contents
Next: 9.9 fluke_mutex_move: move a Up: 9 Mutexes Previous: 9.7 fluke_mutex_get_state: retrieve the

9.8 fluke_mutex_lock: lock a mutex object

SYNOPSIS

void fluke_mutex_lock(fluke_mutex_t *mutex);

DESCRIPTION

Lock a mutex.

PARAMETERS

mutex
The mutex to lock.

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.
INVALID_OBJECT
The state of the mutex object has become invalid.
MUTEX_LOCKED
The mutex object is already locked by the calling thread.



Utah Flux Research Group