create a new thread.
More...
#include <xthread.h>
|
| template<class X > |
| | XThread (const shared_ptr< X > &t, void *(T::*func)(const atomic< bool > &)) |
| |
|
void | resume () |
| | resume a new thread.
|
| |
| void | waitFor (void **retval=0L) |
| |
|
void | terminate () |
| | set termination flag.
|
| |
|
bool | isTerminated () const |
| | fetch termination flag.
|
| |
|
|
static void * | xthread_start_routine (void *) |
| |
|
|
shared_ptr< targ > | m_startarg |
| |
|
pthread_t | m_threadid |
| |
|
std::thread | m_thread |
| |
template<class T>
class XThread< T >
create a new thread.
Definition at line 170 of file xthread.h.
template<class T>
template<class X >
use resume() to start a thread. X must be super class of T.
Definition at line 209 of file xthread.h.
template<class T >
| void XThread< T >::waitFor |
( |
void ** |
retval = 0L | ) |
|
join a running thread. should be called before destruction.
- Parameters
-
| retval | a pointer to return value from a thread. |
Definition at line 259 of file xthread.h.
The documentation for this class was generated from the following file: