#include <Thread.H>
Class to spawn a thread and meet an exited thread.
Definition at line 33 of file Thread.H.
Constructor
Definition at line 44 of file Thread.H.
virtual Thread::~Thread |
( |
void |
| ) |
|
|
inlinevirtual |
Destructor
Definition at line 53 of file Thread.H.
void Thread::exit |
( |
void * |
retVal | ) |
|
|
inline |
Called to exit the thread passes retVal to the one who calls meetThread
- Parameters
-
retVal | The pointer to pass to the meetThread caller |
Definition at line 123 of file Thread.H.
void* Thread::meetThread |
( |
void |
| ) |
|
|
inline |
Wait for the thread to end
- Returns
- If using USE_GLIB_THREADS then NULL, if using pthreads, then the argument passed to Thread::exit when called by the exiting thread.
Definition at line 104 of file Thread.H.
int Thread::run |
( |
void *(*)(void *) |
start_routine, |
|
|
void * |
data |
|
) |
| |
|
inline |
Start a thread running start_routine, passing data to that function
- Parameters
-
start_routine | The function to run after the thread has been started |
data | The argument to be pased to the thread |
zero | on success, a different number on failure |
Definition at line 79 of file Thread.H.
The thread structure.
Definition at line 39 of file Thread.H.
The documentation for this class was generated from the following file: