The Signalable class abstracts the ability of an entity to be delivered a posix signal.
More...
#include <signalable.h>
The Signalable class abstracts the ability of an entity to be delivered a posix signal.
Definition at line 35 of file signalable.h.
core::posix::Signalable::Signalable |
( |
pid_t |
pid | ) |
|
|
explicitprotected |
void core::posix::Signalable::send_signal |
( |
Signal |
signal, |
|
|
std::error_code & |
e |
|
) |
| |
|
virtualnoexcept |
Sends a signal to this signalable object.
- Parameters
-
[in] | signal | The signal to be sent to the process. |
[out] | e | Set to contain an error if an issue arises. |
Definition at line 42 of file signalable.cpp.
void core::posix::Signalable::send_signal_or_throw |
( |
Signal |
signal | ) |
|
|
virtual |
Sends a signal to this signalable object.
- Exceptions
-
std::system_error | in case of problems. |
- Parameters
-
[in] | signal | The signal to be sent to the process. |
Definition at line 34 of file signalable.cpp.
Referenced by TEST().
The documentation for this class was generated from the following files:
- /build/process-cpp-3.0.2~20210511165841.4~ee6d99a+ubports16.04/include/core/posix/signalable.h
- /build/process-cpp-3.0.2~20210511165841.4~ee6d99a+ubports16.04/src/core/posix/signalable.cpp