Rudiments
signalclasses.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_SIGNALCLASSES_H
5#define RUDIMENTS_SIGNALCLASSES_H
6
7#include <rudiments/private/signalclassesincludes.h>
8
12class RUDIMENTS_DLLSPEC signalset : public object {
13 friend class signalmanager;
14 friend class signalhandler;
15 public:
16
19
22
26
30
34
38
42
46
50
51 #include <rudiments/private/signalset.h>
52};
53
54
55
58class RUDIMENTS_DLLSPEC signalmanager {
59 public:
70
74
79
84};
85
86
89class RUDIMENTS_DLLSPEC signalhandler : public object {
90 public:
91
94
97
100 void setHandler(void (*handler)(int32_t));
101
104 void (*getHandler())(int32_t);
105
112 bool handleSignal(int32_t signum);
113
123
126
129 void addFlag(int32_t flag);
130
133 void removeFlag(int32_t flag);
134
137 int32_t getFlags();
138
139
142
145
159
160 #include <rudiments/private/signalhandler.h>
161
162};
163
164#endif
Definition avltree.h:11
Definition object.h:10
Definition signalclasses.h:89
void setHandler(void(*handler)(int32_t))
void(*)(int32_t) getHandler()
Definition signalclasses.h:104
const signalset * getMask()
void setMask(signalset *sset)
int32_t getFlags()
void addFlag(int32_t flag)
void removeFlag(int32_t flag)
bool handleSignal(int32_t signum)
bool handleSignal(int32_t signum, signalhandler *oldhandler)
static bool supportsSignalHandlerParameter()
void removeAllFlags()
Definition signalclasses.h:58
static bool waitForSignals(signalset *mask)
static uint32_t alarm(uint32_t seconds)
static bool ignoreSignals(signalset *sset)
static bool getBlockedSignals(signalset *sset)
Definition signalclasses.h:12
bool removeShutDownSignals()
int32_t getSignalIsInSet(int32_t signum)
bool removeCrashSignals()
bool removeAllSignals()
bool addSignal(int32_t signum)
bool removeSignal(int32_t signum)
bool addAllSignals()