|
libcosmos
Linux C++ System Programming Library
|
Additional custom SigInfo data. More...
#include <SigInfo.hxx>
Public Member Functions | |
| CustomData (union sigval val) | |
| int | asInt () const |
| Returns custom data sent with the signal. | |
| void * | asPtr () const |
| Returns custom data sent with the signal. | |
Protected Attributes | |
| union sigval | m_val |
Additional custom SigInfo data.
Some SigInfo contexts allow to add custom data either as an int or a void*. The meaning and format of this data is application specific, so you need to known by contract what to expect.
Definition at line 116 of file SigInfo.hxx.
|
inlineexplicit |
Definition at line 119 of file SigInfo.hxx.
|
inline |
Returns custom data sent with the signal.
The data can either be provided as an int or as a void*. The latter is available from asPtr().
Definition at line 126 of file SigInfo.hxx.
|
inline |
Returns custom data sent with the signal.
This returns custom data sent with the signal, placed into a void* field.
Definition at line 137 of file SigInfo.hxx.
|
protected |
Definition at line 143 of file SigInfo.hxx.