A thread... presumably you know what this is.
More...
#include <cpp_pthreads/thread.h>
|
| typedef void *(* | routine_t )(void *) |
| | type of a function which the thread will invoke More...
|
| |
|
| pthread_t | c_obj () |
| | return underlying object More...
|
| |
| int | cancel () |
| | cancel this thread More...
|
| |
| int | detach () |
| | detach a thread, the thread will be destroyed when it exits More...
|
| |
| int | join (void **value_ptr=0) |
| | join a thread, calling thread blocks until this thread has exited More...
|
| |
| int | kill (int sig) |
| | send a signal to the thread More...
|
| |
| int | launch (routine_t start, void *arg=0) |
| | start a new thread storing the id in m_data More...
|
| |
| int | launch (const Attr< Thread > &attr, routine_t start, void *arg=0) |
| | start a new thread using the specified attributes More...
|
| |
| template<typename Callable > |
| int | launch (Callable *obj) |
| | start a new thread which calls the callable object More...
|
| |
| template<typename Callable > |
| int | launch (const Attr< Thread > &attr, Callable *obj) |
| | start a new thread which calls the collable object and has the specified attributes More...
|
| |
| bool | operator== (const Thread &other) |
| | calls pthread_equal More...
|
| |
|
| static void | exit (void *value_ptr) |
| | terminates the calling thread More...
|
| |
| static Thread | self () |
| | get a reference to the calling thread itself More...
|
| |
A thread... presumably you know what this is.
Definition at line 44 of file thread.h.
| typedef void*(* pthreads::Thread::routine_t)(void *) |
type of a function which the thread will invoke
Definition at line 47 of file thread.h.
| pthread_t pthreads::Thread::c_obj |
( |
| ) |
|
|
inline |
return underlying object
Definition at line 54 of file thread.h.
| int pthreads::Thread::cancel |
( |
| ) |
|
| int pthreads::Thread::detach |
( |
| ) |
|
detach a thread, the thread will be destroyed when it exits
| static void pthreads::Thread::exit |
( |
void * |
value_ptr | ) |
|
|
static |
terminates the calling thread
| int pthreads::Thread::join |
( |
void ** |
value_ptr = 0 | ) |
|
join a thread, calling thread blocks until this thread has exited
| int pthreads::Thread::kill |
( |
int |
sig | ) |
|
send a signal to the thread
| int pthreads::Thread::launch |
( |
routine_t |
start, |
|
|
void * |
arg = 0 |
|
) |
| |
start a new thread storing the id in m_data
start a new thread using the specified attributes
template<typename Callable >
| int pthreads::Thread::launch |
( |
Callable * |
obj | ) |
|
|
inline |
start a new thread which calls the callable object
Definition at line 66 of file thread.h.
template<typename Callable >
| int pthreads::Thread::launch |
( |
const Attr< Thread > & |
attr, |
|
|
Callable * |
obj |
|
) |
| |
|
inline |
start a new thread which calls the collable object and has the specified attributes
Definition at line 73 of file thread.h.
| bool pthreads::Thread::operator== |
( |
const Thread & |
other | ) |
|
| static Thread pthreads::Thread::self |
( |
| ) |
|
|
static |
get a reference to the calling thread itself
| pthread_t pthreads::Thread::m_data |
|
private |
The documentation for this class was generated from the following file: