next up previous contents
Next: 2.10 fluke_thread_get_handlers: return the Up: 2 Thread Previous: 2.8 fluke_thread_enable_exceptions: allow exceptions

2.9 fluke_thread_get_client: retrieve the ``client'' reliable-IPC link

SYNOPSIS

void fluke_thread_get_client(fluke_thread_t *cur_thread, fluke_ref_t *client_ref, unsigned *flags);

DESCRIPTION

Note: this is a preliminary interface subject to change at the whim of anyone who cares.

Returns the current thread's client reliable-IPC link and associated flags. Client_ref is a reference for the thread (if any) with which the calling thread is engaged in a reliable-IPC as the server; i.e. it is a reference to the client-side of the connection. The returned reference will be null if the calling thread was not engaged in such an IPC connection.

Flags will either be FLUKE_THREAD_SERVER_SENDER if the calling thread was the current sender on the connection, or zero if the referenced client was the sender. The flag word is only valid if client_ref is non-null.

Together with fluke_thread_set_client, this call can be used to save and restore the state of the client connection state allowing a thread to be engaged in multiple client IPC calls.

PARAMETERS

cur_thread
A pointer to the thread object representing the current thread, e.g. as returned by fluke_thread_self.
client_ref
If non-null, the address of a reference object to associate with the thread's reliable-IPC client thread object.
flags
If non-null, a word in which to store the IPC flags related to the client connection.

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.
NOT_CURRENT_THREAD
Thread specified was not the current thread.
NO_OBJECT
client_ref does not point to an active object.
NOT_REF
The object pointed to by client_ref is not a reference object.

RELATED INFORMATION

fluke_thread_set_client


next up previous contents
Next: 2.10 fluke_thread_get_handlers: return the Up: 2 Thread Previous: 2.8 fluke_thread_enable_exceptions: allow exceptions

Utah Flux Research Group