GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
quit.cc File Reference
#include <atomic>
#include <cstring>
#include <ostream>
#include <sstream>
#include <new>
#include "quit.h"

Go to the source code of this file.

Functions

void octave_handle_signal ()
 
void octave_quit_c (void)
 

Variables

void(* octave_interrupt_hook )() = nullptr
 
std::atomic< sig_atomic_t > octave_interrupt_state {0}
 
volatile std::atomic< bool > octave_signal_caught {false}
 
void(* octave_signal_hook )() = nullptr
 

Function Documentation

◆ octave_handle_signal()

void octave_handle_signal ( void  )

Definition at line 109 of file quit.cc.

References octave_interrupt_state, and octave_signal_hook.

◆ octave_quit_c()

void octave_quit_c ( void  )

Definition at line 103 of file quit.cc.

Variable Documentation

◆ octave_interrupt_hook

void(* octave_interrupt_hook) () ( ) = nullptr

Definition at line 44 of file quit.cc.

Referenced by interpreter::initialize().

◆ octave_interrupt_state

◆ octave_signal_caught

volatile std::atomic<bool> octave_signal_caught {false}

Definition at line 41 of file quit.cc.

Referenced by interpreter::recover_from_exception().

◆ octave_signal_hook

void(* octave_signal_hook) () ( ) = nullptr

Definition at line 43 of file quit.cc.

Referenced by interpreter::initialize(), and octave_handle_signal().