next up previous contents
Next: 2.8 fluke_thread_enable_exceptions: allow exceptions Up: 2 Thread Previous: 2.6 fluke_thread_destroy: destroy a

2.7 fluke_thread_disable_exceptions: prevent exceptions in the current thread

SYNOPSIS

void fluke_thread_disable_exceptions( fluke_thread_t *cur_thread);

DESCRIPTION

This operation turns off the exception enable flag in the current thread. Thereafter, until a subsequent call to fluke_thread_enable_exceptions, any asynchronous exceptions that are posted to this thread will be deferred until exceptions are enabled again, and any synchronous exceptions that occur in this thread will cause the thread to make an idempotent IPC to its task's keeper port.

PARAMETERS

cur_thread
A pointer to the thread object representing the current thread, e.g. as returned by fluke_thread_self.

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_enable_exceptions, fluke_thread_interrupt, fluke_thread_set_handlers, fluke_ipc_side_alert



Utah Flux Research Group