A class for managing threads.This class provides a portable framework around the tasks of instantiating, starting, stopping and joining threads.
More...
#include <Inventor/threads/SbThread.h>
|
SbBool | join (void **retval=0L) |
|
A class for managing threads.
This class provides a portable framework around the tasks of instantiating, starting, stopping and joining threads.
It wraps the underlying native thread-handling toolkit in a transparent manner, to make multiplatform threads programming straightforward for the application programmer.
SbThread::SbThread |
( |
cc_thread * |
thread | ) |
|
|
inlineprotected |
Protected constructor handling the internal thread ADT.
- See Also
- SbThread::create
SbThread::~SbThread |
( |
void |
| ) |
|
|
inlineprotected |
static SbThread * SbThread::create |
( |
void *(*)(void *) |
func, |
|
|
void * |
closure |
|
) |
| |
|
inlinestatic |
This function creates a new thread, or returns NULL on failure.
static void SbThread::destroy |
( |
SbThread * |
thread | ) |
|
|
inlinestatic |
This function destroys a thread.
int SbThread::join |
( |
void ** |
retval = 0L | ) |
|
|
inline |
This function waits on the death of the given thread, returning the thread's return value at the location pointed to by retval
.
static int SbThread::join |
( |
SbThread * |
thread, |
|
|
void ** |
retval = 0L |
|
) |
| |
|
inlinestatic |
This function waits on the death of the given thread, returning the thread's return value at the location pointed to by retval
.
The documentation for this class was generated from the following files: