A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://scip.zib.de/doc/html/interrupt_8c_source.php below:

SCIP Doxygen Documentation: interrupt.c Source File

Go to the documentation of this file. 50#ifdef SCIP_NO_SIGACTION 51typedef

void (*SigHdlr)(int);

81

printf(

"pressed CTRL-C %d times. forcing termination.\n"

,

ninterrupts

);

86

printf(

"pressed CTRL-C %d times (5 times for forcing termination)\n"

,

ninterrupts

);

95

assert(interrupt !=

NULL

);

98

(*interrupt)->nuses = 0;

108

assert(interrupt !=

NULL

);

118

assert(interrupt !=

NULL

);

119

assert(interrupt->

nuses

>= 0);

121 if

( interrupt->

nuses

== 0 )

123#ifdef SCIP_NO_SIGACTION 126 struct

sigaction newaction;

130

newaction.sa_flags = 0;

131

(void)sigemptyset(&newaction.sa_mask);

134

(void)sigaction(SIGINT, &newaction, &interrupt->

oldsigaction

);

140

interrupt->

nuses

++;

148

assert(interrupt !=

NULL

);

149

assert(interrupt->

nuses

>= 1);

151

interrupt->

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