FBX C++ API Reference
|
#include <fbxthread.h>
This class implement a standard way to use threads across platforms.
Definition at line 29 of file fbxthread.h.
Public Types | |
enum | EState { eUnknown, eRunning, eDead } |
enum | EPriority { eNone, eIdle, eLowest, eLow, eNormal, eHigh, eHighest, eRealTime } |
Public Member Functions | |
FbxThread (FbxThreadProc pProc, void *pArg, bool pSuspend=false) | |
Constructor. More... | |
FbxThread (FbxThreadProc pProc, void *pArg, EPriority pPriority, bool pSuspend=false) | |
Constructor. More... | |
virtual | ~FbxThread () |
Destructor. More... | |
bool | Suspend () |
Suspend the execution of the thread. More... | |
bool | Resume () |
Resume the execution of the thread. More... | |
bool | Join () |
Wait for the thread completion. More... | |
bool | Kill () |
Do not wait for the thread completion and terminate it. More... | |
EPriority | GetPriority () |
Retrieve the priority of the thread. More... | |
bool | SetPriority (EPriority pPriority) |
Set the thread priority. More... | |
EState | GetState () |
Retrieve the thread current state. More... | |
enum EState |
Enumerator | |
---|---|
eUnknown | |
eRunning | |
eDead |
Definition at line 32 of file fbxthread.h.
enum EPriority |
Enumerator | |
---|---|
eNone | |
eIdle | |
eLowest | |
eLow | |
eNormal | |
eHigh | |
eHighest | |
eRealTime |
Definition at line 33 of file fbxthread.h.
FbxThread | ( | FbxThreadProc | pProc, |
void * | pArg, | ||
bool | pSuspend = false |
||
) |
Constructor.
pProc | The procedure called upon thread startup. |
pArg | The arguments passed to the procedure. |
pSuspend | Start the thread suspended. |
FbxThread | ( | FbxThreadProc | pProc, |
void * | pArg, | ||
EPriority | pPriority, | ||
bool | pSuspend = false |
||
) |
Constructor.
pProc | The procedure called upon thread startup. |
pArg | The arguments passed to the procedure. |
pPriority | The thread priority to set upon creation. |
pSuspend | Start the thread suspended. |
|
virtual |
Destructor.
bool Suspend | ( | ) |
Suspend the execution of the thread.
bool Resume | ( | ) |
Resume the execution of the thread.
bool Join | ( | ) |
Wait for the thread completion.
bool Kill | ( | ) |
Do not wait for the thread completion and terminate it.
EPriority GetPriority | ( | ) |
Retrieve the priority of the thread.
bool SetPriority | ( | EPriority | pPriority | ) |
Set the thread priority.
pPriority | The priority to set to this thread. |
EState GetState | ( | ) |
Retrieve the thread current state.