24 #ifndef LIBTHREADAR_THREAD_HPP
25 #define LIBTHREADAR_THREAD_HPP
145 unsigned int cancellable;
151 static void *run_obj(
void *obj);
152 static void primitive_suspend_cancellation_requests();
153 static void primitive_resume_cancellation_requests();
void join() const
the caller will be suspended until the current object's thread ends
void set_signal_mask(const sigset_t &mask)
set signal mask for this object's when the thread will be run
defines the mutex C++ class
void kill() const
the caller send a cancellation request to this object's running thread if any
void suspend_cancellation_requests() const
available for inherited class to avoid thread cancellation to occur in a critical section ...
void run()
launch the current object routing in a separated thread
virtual void inherited_run()=0
action to be performed in the separated thread
virtual ~thread()
destructor
Class thread is a pure virtual class, that implements thread creation and operations.
void resume_cancellation_requests() const
available for inherited class to avoid thread cancellation to occur in a critical section ...
bool is_running() const
checks whether a separated thread is running the inherited_run() method of this object ...
This is the only namespace used in libthreadar and all symbols provided by libthreadar are member of ...
Wrapper around the Posix pthread_mutex_t C objects.