next up previous contents
Next: 2.17 fluke_thread_return_from_exception: return from Up: 2 Thread Previous: 2.15 fluke_thread_move: move a

2.16 fluke_thread_reference: associates a reference with a thread

SYNOPSIS

void fluke_thread_reference(fluke_thread_t *thread, fluke_ref_t *new_thread_ref);

DESCRIPTION

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

PARAMETERS

thread
The thread object to which the new reference will refer.
new_thread_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
thread or new_thread_ref does not point to an active object.
NOT_THREAD
The object pointed to by thread is not a thread object.
NOT_REF
new_thread_ref does not point to a valid reference object.
INVALID_OBJECT
The state of the thread or reference object has become invalid.



Utah Flux Research Group