129#ifndef OMP_INTERRUPTIBLE_H
130#define OMP_INTERRUPTIBLE_H
181#define OMP_BEGIN_INTERRUPTIBLE { \
182 int omp_was_interrupted; \
183 omp_interruptible_set_handler(SIGINT, &omp_was_interrupted);
186#define OMP_END_INTERRUPTIBLE \
187 omp_interruptible_restore_handler(SIGINT); \
191#define OMP_WAS_INTERRUPTED omp_was_interrupted
195#define OMP_EXIT_LOOP_EARLY continue;
197#define OMP_EXIT_LOOP_EARLY break;
static __thread int * omp_interruptible_flag_ptr
static void omp_interruptible_handler(int sig)
static __thread struct sigaction omp_interruptible_old_action
static const struct sigaction omp_interruptible_action
static void omp_interruptible_restore_handler(int sig)
static void omp_interruptible_set_handler(int sig, int *flag_ptr)