#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) |
| 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. | |
| static Thread* xmltooling::Thread::create | ( | void *(*)(void *) | start_routine, | |
| void * | arg | |||
| ) | [static] |
Creates a new thread object to run the supplied start routine.
| start_routine | the function to execute on the thread | |
| arg | a parameter for the start routine |
| virtual int xmltooling::Thread::detach | ( | ) | [pure virtual] |
Disassociate from the thread.
| static void xmltooling::Thread::exit | ( | void * | return_val | ) | [static] |
Exits a thread gracefully.
| return_val | the return value for the thread |
| virtual int xmltooling::Thread::join | ( | void ** | thread_return | ) | [pure virtual] |
Join with the thread and wait for its completion.
| thread_return | holds the return value of the thread routine |
| virtual int xmltooling::Thread::kill | ( | int | signo | ) | [pure virtual] |
Kill the thread.
| signo | the signal to send to the thread |
| static int xmltooling::Thread::mask_signals | ( | int | how, | |
| const sigset_t * | newmask, | |||
| sigset_t * | oldmask | |||
| ) | [static] |
Masks specific signals from a thread.
| how | ||
| newmask | the new signal mask | |
| oldmask | the old signal mask |
| static void xmltooling::Thread::sleep | ( | int | seconds | ) | [static] |
Sleeps the current thread for the specified amount of time.
| seconds | time to sleep |
1.4.7