next up previous contents
Next: 2.22 fluke_thread_set_server: change the Up: 2 Thread Previous: 2.20 fluke_thread_set_handlers: register the

2.21 fluke_thread_set_saved_state: restores exception state of a thread

SYNOPSIS

void fluke_thread_set_saved_state(fluke_thread_t *cur_thread, struct fluke_thread_saved_state *saved_state);

DESCRIPTION

Restores the saved exception state of a thread; e.g., as returned by fluke_thread_get_saved_state. This state will be reloaded in the thread on fluke_thread_return_from_exception. Only required if the exception handler has modified some element of the saved state.

PARAMETERS

cur_thread
A pointer to the thread object representing the current thread, e.g. as returned by fluke_thread_self.
saved_state
A pointer to the architecture-specific saved state structure.

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.

RELATED INFORMATION

fluke_thread_set_handlers, fluke_thread_get_saved_state, fluke_thread_return_from_exception



Utah Flux Research Group