#include <xmltooling/util/Threads.h>
Public Member Functions | |
virtual int | detach ()=0 |
Disassociate from the thread. | |
virtual int | join (void **thread_return)=0 |
Join with the thread and wait for its completion. | |
virtual int | kill (int signo)=0 |
Kill the thread. | |
Static Public Member Functions | |
static Thread * | create (void *(*start_routine)(void *), void *arg, size_t stacksize=0) |
Creates a new thread object to run the supplied start routine. | |
static void | exit (void *return_val) |
Exits a thread gracefully. | |
static void | sleep (int seconds) |
Sleeps the current thread for the specified amount of time. | |
static void | mask_all_signals (void) |
Masks all signals from a thread. | |
static int | mask_signals (int how, const sigset_t *newmask, sigset_t *oldmask) |
Masks specific signals from a thread. |
|
Creates a new thread object to run the supplied start routine.
|
|
Disassociate from the thread.
|
|
Exits a thread gracefully.
|
|
Join with the thread and wait for its completion.
|
|
Kill the thread.
|
|
Masks specific signals from a thread.
|
|
Sleeps the current thread for the specified amount of time.
|