next up previous contents
Next: 10.12 fluke_cond_signal: signal on Up: 10 Condition Variables Previous: 10.10 fluke_cond_reference: associates a

10.11 fluke_cond_set_state: set the current state of a condition variable object

SYNOPSIS

void fluke_cond_set_state(fluke_cond_t *cond, fluke_cond_state *state);

DESCRIPTION

This operation can be used to set the application-visible state of a condition variable.

PARAMETERS

cond
The condition variable whose state is to be modified.
state
If non-null, a pointer to a structure containing the state of the condition variable.
inheritor_ref
The address of a thread reference object to be copied into the condition variable's inheritor reference slot.

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 or reference object has become invalid.
NOT_REF
The object at inheritor_ref is not a reference object.
NOT_THREAD_REF
The object at inheritor_ref is a reference object, but not a reference to a thread.

RELATED INFORMATION

fluke_cond_get_state



Utah Flux Research Group