void (*SigHdlr)(int);
81printf(
"pressed CTRL-C %d times. forcing termination.\n",
ninterrupts);
86printf(
"pressed CTRL-C %d times (5 times for forcing termination)\n",
ninterrupts);
95assert(interrupt !=
NULL);
98(*interrupt)->nuses = 0;
108assert(interrupt !=
NULL);
118assert(interrupt !=
NULL);
119assert(interrupt->
nuses>= 0);
121 if( interrupt->
nuses== 0 )
123#ifdef SCIP_NO_SIGACTION 126 structsigaction newaction;
130newaction.sa_flags = 0;
131(void)sigemptyset(&newaction.sa_mask);
134(void)sigaction(SIGINT, &newaction, &interrupt->
oldsigaction);
140interrupt->
nuses++;
148assert(interrupt !=
NULL);
149assert(interrupt->
nuses>= 1);
151interrupt->
nuses--;
152 if( interrupt->
nuses== 0 )
154#ifdef SCIP_NO_SIGACTION 155(void)signal(SIGINT, interrupt->oldsighdlr);
common defines and data types used in all packages of SCIP
SCIP_RETCODE SCIPinterruptCreate(SCIP_INTERRUPT **interrupt)
void SCIPinterruptRelease(SCIP_INTERRUPT *interrupt)
static volatile int nterms
void SCIPresetInterrupted(void)
static volatile int ninterrupts
void SCIPinterruptCapture(SCIP_INTERRUPT *interrupt)
void SCIPinterruptFree(SCIP_INTERRUPT **interrupt)
static void interruptHandler(int signum)
void SCIPtryTerminate(void)
SCIP_Bool SCIPterminated(void)
SCIP_Bool SCIPinterrupted(void)
methods for catching the user CTRL-C interrupt
memory allocation routines
#define BMSfreeMemory(ptr)
#define BMSallocMemory(ptr)
public methods for message output
struct sigaction oldsigaction
enum SCIP_Retcode SCIP_RETCODE
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4