GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
cxx-signal-helpers.cc File Reference
#include <sys/types.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <pthread.h>
#include "signal-wrappers.h"
Include dependency graph for cxx-signal-helpers.cc:

Go to the source code of this file.

Functions

static const sigset_t init_async_signals (void)
 
void octave_block_async_signals (void)
 
void octave_create_interrupt_watcher_thread (octave_sig_handler *handler)
 
void octave_unblock_async_signals (void)
 
static void * signal_watcher (void *arg)
 

Variables

static const sigset_t async_signals = init_async_signals ()
 

Function Documentation

◆ init_async_signals()

static const sigset_t init_async_signals ( void  )
static

Definition at line 67 of file cxx-signal-helpers.cc.

◆ octave_block_async_signals()

void octave_block_async_signals ( void  )

Definition at line 151 of file cxx-signal-helpers.cc.

References async_signals.

Referenced by main().

◆ octave_create_interrupt_watcher_thread()

void octave_create_interrupt_watcher_thread ( octave_sig_handler handler)

Definition at line 193 of file cxx-signal-helpers.cc.

References octave_unblock_async_signals(), and signal_watcher().

Referenced by install_signal_handlers().

◆ octave_unblock_async_signals()

void octave_unblock_async_signals ( void  )

◆ signal_watcher()

static void* signal_watcher ( void *  arg)
static

Variable Documentation

◆ async_signals

const sigset_t async_signals = init_async_signals ()
static