sigInt Class Reference

Signal handler for INT interrupt. More...

Public Member Functions

 sigInt ()
 Construct null. More...
 
 ~sigInt ()
 Destructor. More...
 
 sigInt ()
 Construct null. More...
 
 ~sigInt ()
 Destructor. More...
 

Static Public Member Functions

static void set (bool verbose=false)
 Activate SIGINT signal handler. More...
 
static void unset (bool verbose=false)
 Deactivate SIGINT signal handler. More...
 
static void set (bool verbose=false)
 Activate SIGINT signal handler. More...
 
static void unset (bool verbose=false)
 Deactivate SIGINT signal handler. More...
 

Detailed Description

Signal handler for INT interrupt.

The standard interrupt handler is overridden to ensure that the runningJob file is removed.

Can be used either directly through the static member functions or through the scope of the object (constructor sets trapping; destructor restores original).

See also
Foam::JobInfo
Source files

The standard interrupt handler is overridden to ensure that the runningJob file is removed.

Can be used either directly through the static member functions or through the scope of the object (constructor sets trapping; destructor restores original).

See also
Foam::JobInfo
Source files

Definition at line 59 of file sigInt.H.

Constructor & Destructor Documentation

◆ sigInt() [1/2]

sigInt ( )

Construct null.

Definition at line 57 of file sigInt.C.

◆ ~sigInt() [1/2]

~sigInt ( )

Destructor.

Definition at line 65 of file sigInt.C.

◆ sigInt() [2/2]

sigInt ( )

Construct null.

◆ ~sigInt() [2/2]

~sigInt ( )

Destructor.

Member Function Documentation

◆ set() [1/2]

void set ( bool  verbose = false)
static

Activate SIGINT signal handler.

Definition at line 73 of file sigInt.C.

References Foam::setHandler().

Here is the call graph for this function:

◆ unset() [1/2]

void unset ( bool  verbose = false)
static

Deactivate SIGINT signal handler.

Definition at line 85 of file sigInt.C.

References Foam::resetHandler().

Here is the call graph for this function:

◆ set() [2/2]

static void set ( bool  verbose = false)
static

Activate SIGINT signal handler.

◆ unset() [2/2]

static void unset ( bool  verbose = false)
static

Deactivate SIGINT signal handler.


The documentation for this class was generated from the following files: