next up previous contents
Next: 10.8 fluke_cond_get_state: retrieve the Up: 10 Condition Variables Previous: 10.6 fluke_cond_create_hash: create a

10.7 fluke_cond_destroy: destroy a condition variable

SYNOPSIS

void fluke_cond_destroy(fluke_cond_t *cond);

DESCRIPTION

Destroys an active condition variable created with fluke_cond_create. Condition variables may only be destroyed when no threads are waiting on them; attempting to destroy a condition variable that threads are waiting on produces undefined results.

PARAMETERS

cond
The condition variable to destroy.

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
cond does not point to an active object.
NOT_COND
The object pointed to by cond is not a condition variable object.
INVALID_OBJECT
The state of the condition variable object has become invalid.
COND_WAITING_THREADS
One or more other threads are still waiting on the condition variable.

RELATED INFORMATION

fluke_cond_create



Utah Flux Research Group