24#ifndef LIBTHREADAR_THREAD_SIGNAL_HPP
25#define LIBTHREADAR_THREAD_SIGNAL_HPP
104 virtual void inherited_cancel()
override;
107 static bool initialized;
108 static int awaking_signal;
110 static void set_signal_handler();
111 static void handler(
int sig);
Wrapper around the Posix pthread_mutex_t C objects.
Class thread_signal provide the same interface as class thread but relies on a signal to wakeup the t...
static void change_default_signal(int sig)
change the signal used to awake threads
thread_signal()
constructor
void set_signal_mask(const sigset_t &mask)
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()
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