|
VizKit
3.3.7
|
Providing multi-threading functionality. More...
#include <VisualThreading.h>
Public Types | |
| typedef void(* | ThreadDidDieCallback )() |
| Callback that is called after a thread died. | |
Static Public Member Functions | |
| static bool | createThread (ThreadingFuncPtr aThreadingFuncPtr, void *param=NULL, ThreadDidDieCallback callbackAfterThreadDidDie=NULL) |
| Creates a new thread by calling task function. | |
Private Member Functions | |
| VisualThreading () | |
| The constructor. | |
| ~VisualThreading () | |
| The destructor. | |
Providing multi-threading functionality.
| typedef void(* VizKit::VisualThreading::ThreadDidDieCallback)() |
Callback that is called after a thread died.
| VizKit::VisualThreading::VisualThreading | ( | ) | [private] |
The constructor.
VisualThreading is a collection of static methods. Class does not need any instances. Constructor is private and not implemented.
| VizKit::VisualThreading::~VisualThreading | ( | ) | [private] |
The destructor.
VisualThreading is a collection of static methods. Class does not need any instances. Destructor is private and not implemented.
| bool VisualThreading::createThread | ( | ThreadingFuncPtr | aThreadingFuncPtr, |
| void * | param = NULL, |
||
| ThreadDidDieCallback | callbackAfterThreadDidDie = NULL |
||
| ) | [static] |
Creates a new thread by calling task function.
| aThreadingFuncPtr | Pointer to function that should be started in new thread. |
| param | Optional name for function-thread. Useful for debugging purposes. |
| callbackAfterThreadDidDie | Callback that is called after the created thread did finished execution. |