#include "octave-config.h"
#include <signal.h>
Go to the source code of this file.
Macros | |
#define | BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE |
#define | END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE |
#define | OCTAVE_QUIT |
Enumerations | |
enum | octave_exception { octave_no_exception = 0, octave_exec_exception = 1, octave_alloc_exception = 3, octave_quit_exception = 4 } |
Functions | |
OCTAVE_API void | octave_handle_signal (void) |
OCTAVE_API void | octave_rethrow_exception (void) |
OCTAVE_NORETURN OCTAVE_API void | octave_throw_bad_alloc (void) |
OCTAVE_NORETURN OCTAVE_API void | octave_throw_execution_exception (void) |
OCTAVE_NORETURN OCTAVE_API void | octave_throw_exit_exception (int exit_status, int safe_to_return) |
OCTAVE_NORETURN OCTAVE_API void | octave_throw_interrupt_exception (void) |
Variables | |
OCTAVE_API sig_atomic_t | octave_exception_state |
OCTAVE_API sig_atomic_t | octave_exit_exception_safe_to_return |
OCTAVE_API sig_atomic_t | octave_exit_exception_status |
OCTAVE_API sig_atomic_t | octave_interrupt_state |
OCTAVE_API volatile sig_atomic_t | octave_signal_caught |
#define BEGIN_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE |
Definition at line 213 of file quit.h.
Referenced by octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::C(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), octave::math::sparse_chol< chol_type >::sparse_chol_rep< chol_type >::init(), octave::curl_transfer::perform(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::Q(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve().
#define END_INTERRUPT_IMMEDIATELY_IN_FOREIGN_CODE |
Definition at line 217 of file quit.h.
Referenced by octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::C(), SparseMatrix::fsolve(), SparseComplexMatrix::fsolve(), octave::math::sparse_chol< chol_type >::sparse_chol_rep< chol_type >::init(), octave::curl_transfer::perform(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::Q(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::R(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::sparse_qr_rep(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::tall_solve(), octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::V(), and octave::math::sparse_qr< SPARSE_T >::sparse_qr_rep< SPARSE_T >::wide_solve().
#define OCTAVE_QUIT |
Definition at line 193 of file quit.h.
Referenced by F__betainc__(), F__expint__(), and F__gammainc__().
enum octave_exception |
OCTAVE_API void octave_handle_signal | ( | void | ) |
Definition at line 39 of file quit.cc.
References octave_interrupt_state, octave_signal_hook, and octave_throw_interrupt_exception().
OCTAVE_API void octave_rethrow_exception | ( | void | ) |
Definition at line 105 of file quit.cc.
References octave_alloc_exception, octave_exception_state, octave_exec_exception, octave_exit_exception_safe_to_return, octave_exit_exception_status, octave_interrupt_state, octave_quit_exception, octave_throw_bad_alloc(), octave_throw_execution_exception(), octave_throw_exit_exception(), and octave_throw_interrupt_exception().
OCTAVE_NORETURN OCTAVE_API void octave_throw_bad_alloc | ( | void | ) |
Definition at line 77 of file quit.cc.
References octave_alloc_exception, octave_bad_alloc_hook, and octave_exception_state.
Referenced by octave_rethrow_exception().
OCTAVE_NORETURN OCTAVE_API void octave_throw_execution_exception | ( | void | ) |
Definition at line 67 of file quit.cc.
References octave_exception_state, and octave_exec_exception.
Referenced by octave_rethrow_exception().
OCTAVE_NORETURN OCTAVE_API void octave_throw_exit_exception | ( | int | exit_status, |
int | safe_to_return | ||
) |
Definition at line 88 of file quit.cc.
References octave_exception_state, and octave_quit_exception.
Referenced by octave_rethrow_exception().
OCTAVE_NORETURN OCTAVE_API void octave_throw_interrupt_exception | ( | void | ) |
Definition at line 58 of file quit.cc.
References octave_interrupt_hook.
Referenced by octave_handle_signal(), and octave_rethrow_exception().
OCTAVE_API sig_atomic_t octave_exception_state |
Definition at line 34 of file cquit.c.
Referenced by octave_rethrow_exception(), octave_throw_bad_alloc(), octave_throw_execution_exception(), and octave_throw_exit_exception().
OCTAVE_API sig_atomic_t octave_exit_exception_safe_to_return |
Definition at line 43 of file cquit.c.
Referenced by octave_rethrow_exception().
OCTAVE_API sig_atomic_t octave_exit_exception_status |
Definition at line 41 of file cquit.c.
Referenced by octave_rethrow_exception().
OCTAVE_API sig_atomic_t octave_interrupt_state |
Definition at line 32 of file cquit.c.
Referenced by octave::tree_evaluator::do_unwind_protect_cleanup_code(), octave::command_editor::event_handler(), octave::generic_sig_handler(), octave::jit_typeinfo::jit_typeinfo(), octave_handle_signal(), octave_rethrow_exception(), octave::respond_to_pending_signals(), octave::terminal_dock_widget::terminal_interrupt(), and octave_oncleanup::~octave_oncleanup().
OCTAVE_API volatile sig_atomic_t octave_signal_caught |
Definition at line 49 of file cquit.c.
Referenced by octave::generic_sig_handler(), and octave::terminal_dock_widget::terminal_interrupt().