void fluke_cond_destroy(fluke_cond_t *cond);
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.
- cond
- The condition variable to destroy.
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.
fluke_cond_create