Typedefs | |
typedef __peak_signal * | peak_signal |
Opaque type for the signal object. | |
typedef void(* | peak_signal_event_callback )(peak_signal i, int value, void *context) |
Signal notification callback type. | |
Functions | |
peak_signal | peak_signal_create (int signum, peak_signal_event_callback cb, void *context) |
Create a new signal notification object. | |
int | peak_signal_ignore (int signum) |
Ignore a signal. | |
void | peak_signal_schedule (peak_signal i, peak_task task) |
Schedule a task for signal event notification. | |
void | peak_signal_unschedule (peak_signal i, peak_task task) |
Unschedule a task for signal event notification. |
|
Create a new signal notification object.
|
|
Ignore a signal. Note that some signals can't be handled nor ignored, like SIGKILL.
|
|
Schedule a task for signal event notification. This will enable you to receive signal notifications (using the provided callback in peak_signal_create()) within the specified task. If the task has several threads, one of its thread calls the callback.
|
|
Unschedule a task for signal event notification. This will disable notifications for the specified signal object.
|