signalclasses.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_SIGNALCLASSES_H
#define RUDIMENTS_SIGNALCLASSES_H
#include <rudiments/private/signalclassesincludes.h>
class RUDIMENTS_DLLSPEC signalset {
friend class signalmanager;
friend class signalhandler;
public:
signalset();
~signalset();
bool addSignal(int32_t signum);
bool addAllSignals();
bool removeSignal(int32_t signum);
bool removeShutDownSignals();
bool removeCrashSignals();
bool removeAllSignals();
int32_t signalIsInSet(int32_t signum) const;
#include <rudiments/private/signalset.h>
};
class RUDIMENTS_DLLSPEC signalmanager {
public:
static uint32_t alarm(uint32_t seconds);
static bool ignoreSignals(const signalset *sset);
static bool waitForSignals(const signalset *mask);
static bool examineBlockedSignals(signalset *sset);
};
class RUDIMENTS_DLLSPEC signalhandler {
public:
signalhandler();
~signalhandler();
void setHandler(void (*handler)(int32_t));
void (*getHandler())(int32_t);
bool handleSignal(int32_t signum);
bool handleSignal(int32_t signum, signalhandler *oldhandler);
void removeAllFlags();
void addFlag(int32_t flag);
void removeFlag(int32_t flag);
int32_t getFlags() const;
void setMask(const signalset *sset);
const signalset *getMask() const;
static bool isSignalHandlerIntUsed();
#include <rudiments/private/signalhandler.h>
};
#endif
signalhandler
Definition: signalclasses.h:90
signalhandler::setHandler
void setHandler(void(*handler)(int32_t))
signalhandler::signalhandler
signalhandler()
signalhandler::~signalhandler
~signalhandler()
signalhandler::getHandler
void(*)(int32_t) getHandler()
Definition: signalclasses.h:105
signalhandler::isSignalHandlerIntUsed
static bool isSignalHandlerIntUsed()
signalhandler::getMask
const signalset * getMask() const
signalhandler::addFlag
void addFlag(int32_t flag)
signalhandler::removeFlag
void removeFlag(int32_t flag)
signalhandler::handleSignal
bool handleSignal(int32_t signum)
signalhandler::getFlags
int32_t getFlags() const
signalhandler::handleSignal
bool handleSignal(int32_t signum, signalhandler *oldhandler)
signalhandler::setMask
void setMask(const signalset *sset)
signalhandler::removeAllFlags
void removeAllFlags()
signalmanager
Definition: signalclasses.h:58
signalmanager::alarm
static uint32_t alarm(uint32_t seconds)
signalmanager::examineBlockedSignals
static bool examineBlockedSignals(signalset *sset)
signalmanager::ignoreSignals
static bool ignoreSignals(const signalset *sset)
signalmanager::waitForSignals
static bool waitForSignals(const signalset *mask)
signalset
Definition: signalclasses.h:12
signalset::signalIsInSet
int32_t signalIsInSet(int32_t signum) const
signalset::removeShutDownSignals
bool removeShutDownSignals()
signalset::removeCrashSignals
bool removeCrashSignals()
signalset::removeAllSignals
bool removeAllSignals()
signalset::~signalset
~signalset()
signalset::addSignal
bool addSignal(int32_t signum)
signalset::removeSignal
bool removeSignal(int32_t signum)
signalset::addAllSignals
bool addAllSignals()
signalset::signalset
signalset()