next up previous contents
Next: 9.11 fluke_mutex_set_state: set the Up: 9 Mutexes Previous: 9.9 fluke_mutex_move: move a

9.10 fluke_mutex_reference: associates a reference with a mutex

SYNOPSIS

void fluke_mutex_reference(fluke_mutex_t *mutex, fluke_ref_t *new_mutex_ref);

DESCRIPTION

This function associates an active reference object with the specified active mutex object.

PARAMETERS

mutex
The mutex object to which the new reference will refer.
new_mutex_ref
A pointer to a valid reference object.

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 or new_mutex_ref 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 or reference object has become invalid.
NOT_REF
new_mutex_ref does not point to a valid reference object.



Utah Flux Research Group