Signal handler to write and stop the job. The interrupt is defined by OptimisationSwitches::stopAtWriteNowSignal. More...
Public Member Functions | |
sigStopAtWriteNow () noexcept=default | |
Default construct. More... | |
sigStopAtWriteNow (const Time &runTime, bool verbose=false) | |
Construct with Time reference. More... | |
~sigStopAtWriteNow () | |
Destructor. More... | |
Static Public Member Functions | |
static bool | active () noexcept |
Is active? More... | |
static int | signalNumber () noexcept |
Signal number being used. More... | |
static void | set (bool verbose=false) |
Set/reset signal handler. More... | |
Friends | |
class | addstopAtWriteNowSignalToOpt |
Allow setter access to signal_. More... | |
Signal handler to write and stop the job. The interrupt is defined by OptimisationSwitches::stopAtWriteNowSignal.
Definition at line 52 of file sigStopAtWriteNow.H.
|
defaultnoexcept |
Default construct.
|
explicit |
Construct with Time reference.
Definition at line 107 of file sigStopAtWriteNow.C.
References runTime, and runTimePtr_.
~sigStopAtWriteNow | ( | ) |
Destructor.
Definition at line 116 of file sigStopAtWriteNow.C.
References Foam::resetHandler().
|
inlinestaticnoexcept |
Is active?
Definition at line 102 of file sigStopAtWriteNow.H.
|
inlinestaticnoexcept |
Signal number being used.
Definition at line 107 of file sigStopAtWriteNow.H.
|
static |
Set/reset signal handler.
Definition at line 129 of file sigStopAtWriteNow.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::setHandler(), and sigWriteNow::signalNumber().
Referenced by addstopAtWriteNowSignalToOpt::readData().
|
friend |
Allow setter access to signal_.
Definition at line 75 of file sigStopAtWriteNow.H.