Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInference 4.1.9.1-5e288d3
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
omp_interruptible.h File Reference

Prototypes

static void omp_interruptible_restore_handler (int sig)
 
static void omp_interruptible_handler (int sig)
 
static void omp_interruptible_set_handler (int sig, int *flag_ptr)
 

Go to the source code of this file.

Macros

#define OMP_BEGIN_INTERRUPTIBLE
 
#define OMP_END_INTERRUPTIBLE
 
#define OMP_WAS_INTERRUPTED   omp_was_interrupted
 
#define OMP_EXIT_LOOP_EARLY   break;
 

Variables

static __thread int * omp_interruptible_flag_ptr = NULL
 
static __thread struct sigaction omp_interruptible_old_action
 
static const struct sigaction omp_interruptible_action
 

Macro Definition Documentation

◆ OMP_BEGIN_INTERRUPTIBLE

#define OMP_BEGIN_INTERRUPTIBLE
Value:
{ \
int omp_was_interrupted; \
omp_interruptible_set_handler(SIGINT, &omp_was_interrupted);

Definition at line 181 of file omp_interruptible.h.

◆ OMP_END_INTERRUPTIBLE

#define OMP_END_INTERRUPTIBLE
Value:
}
static void omp_interruptible_restore_handler(int sig)

Definition at line 186 of file omp_interruptible.h.

◆ OMP_WAS_INTERRUPTED

#define OMP_WAS_INTERRUPTED   omp_was_interrupted

Definition at line 191 of file omp_interruptible.h.

◆ OMP_EXIT_LOOP_EARLY

#define OMP_EXIT_LOOP_EARLY   break;

Definition at line 197 of file omp_interruptible.h.

Function Documentation

◆ omp_interruptible_restore_handler()

static void omp_interruptible_restore_handler ( int  sig)
static

Definition at line 148 of file omp_interruptible.h.

◆ omp_interruptible_handler()

static void omp_interruptible_handler ( int  sig)
static

Definition at line 157 of file omp_interruptible.h.

◆ omp_interruptible_set_handler()

static void omp_interruptible_set_handler ( int  sig,
int *  flag_ptr 
)
static

Definition at line 171 of file omp_interruptible.h.

Variable Documentation

◆ omp_interruptible_flag_ptr

__thread int* omp_interruptible_flag_ptr = NULL
static

Definition at line 140 of file omp_interruptible.h.

◆ omp_interruptible_old_action

__thread struct sigaction omp_interruptible_old_action
static
Initial value:
= {
.sa_handler = NULL
}

Definition at line 143 of file omp_interruptible.h.

◆ omp_interruptible_action

const struct sigaction omp_interruptible_action
static
Initial value:
= {
}
static void omp_interruptible_handler(int sig)

Definition at line 166 of file omp_interruptible.h.