24#ifndef LIBTHREADAR_THREAD_SIGNAL_HPP
25#define LIBTHREADAR_THREAD_SIGNAL_HPP
115 virtual void inherited_cancel()
override;
121 static bool initialized;
122 static int awaking_signal;
124 static void set_signal_handler();
125 static void handler(
int sig);
Wrapper around the Posix pthread_mutex_t C objects.
Class thread_signal provides the same interface as class thread but in addition relies on a signal to...
static void change_default_signal(int sig)
change the signal used to awake threads
thread_signal()
constructor
virtual void set_signal_mask(const sigset_t &mask) override
set signal mask for this object's when the thread_signal will be run
virtual ~thread_signal()=default
destructor
thread_signal(const thread_signal &ref)=delete
copy constructor and assignment operator are disabled from libhtreadar::thread
virtual void signaled_inherited_cancel()
replaces thread::inherited_cancel() and should be used instead of it
Class thread is a pure virtual class, that implements thread creation and operations.
This is the only namespace used in libthreadar and all symbols provided by libthreadar are member of ...
holds the definition of the thread class