#include <gauge3d/osabstraction/thread.h>
Inherits GAUGE3D::GObject.
Public Methods | |
| GThread (void *(*start)(void *)) | |
| Create the thread, but don't start it yet. More... | |
| ~GThread () | |
| Kill and destroy the thread. | |
| void | Start (void *arg) |
| Start the thread with the given argument. More... | |
| void* | Join () |
| Wait for the thread to finish and get the return value. More... | |
| void | Detach () |
| Call if you will not be joining the thread. More... | |
Static Public Methods | |
| void | Return (void *retVal) |
| Quit the current thread. More... | |
This class allows for multitasking support.
|
|
Create the thread, but don't start it yet.
|
|
|
Start the thread with the given argument.
|
|
|
Wait for the thread to finish and get the return value.
|
|
|
Call if you will not be joining the thread. If you do not call this and do not call Join(), some resources associated with the thread may never be freed. |
|
|
Quit the current thread.
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000