SHOGUN v0.9.0
|
Class Signal implements signal handling to e.g. allow ctrl+c to cancel a long running process.
This is done in two ways:
公有成员 | |
CSignal () | |
virtual | ~CSignal () |
virtual const char * | get_name () const |
静态公有成员 | |
static void | handler (int signal) |
static bool | set_handler () |
static bool | unset_handler () |
static void | clear () |
static void | clear_cancel () |
static void | set_cancel (bool immediately=false) |
static bool | cancel_computations () |
静态保护属性 | |
static int | signals [NUMTRAPPEDSIGS] = {SIGINT, SIGURG} |
static struct sigaction | oldsigaction [NUMTRAPPEDSIGS] |
static bool | active = false |
static bool | cancel_computation = false |
static bool | cancel_immediately = false |
CSignal | ( | ) |
default constructor
在文件Signal.cpp第30行定义。
~CSignal | ( | ) | [virtual] |
在文件Signal.cpp第35行定义。
static bool cancel_computations | ( | ) | [static] |
void clear | ( | ) | [static] |
clear signals
在文件Signal.cpp第142行定义。
void clear_cancel | ( | ) | [static] |
clear cancel flag signals
在文件Signal.cpp第128行定义。
virtual const char* get_name | ( | void | ) | const [virtual] |
void handler | ( | int | signal | ) | [static] |
void set_cancel | ( | bool | immediately = false | ) | [static] |
set cancel flag signals
在文件Signal.cpp第134行定义。
bool set_handler | ( | ) | [static] |
bool unset_handler | ( | ) | [static] |
bool cancel_computation = false [static, protected] |
bool cancel_immediately = false [static, protected] |
struct sigaction oldsigaction[NUMTRAPPEDSIGS] [static, protected] |
int signals = {SIGINT, SIGURG} [static, protected] |