typedef void(CEL_API * Celartem::ThreadUtil::ThreadEntryPoint)(void *inParam) |
The definition of the thread entry point for threadCreate function.
- Parameters
-
inParam | The second parameter passed to threadCreate function. |
static void Celartem::ThreadUtil::close |
( |
void * |
threadHandle | ) |
|
|
static |
This function closes the handle of the thread.
- Parameters
-
threadHandle | The handle of thread. |
Referenced by Celartem::Thread::join().
static void* Celartem::ThreadUtil::create |
( |
ThreadEntryPoint |
entryPoint, |
|
|
void * |
inParam |
|
) |
| |
|
static |
This function creates a new thread.
- Parameters
-
entryPoint | Pointer to the thread entry point. |
inParam | Thread defined parameter; this parameter is passed to the function pointed by entryPoint parameter. |
- Returns
- This function returns a handle to the thread. The handle should be closed by calling threadClose function if no longer needed.
Referenced by Celartem::Thread::run().
static size_t Celartem::ThreadUtil::getThreadId |
( |
| ) |
|
|
static |
This function returns the thread Id of the current thread.
- Returns
- The thread Id of the thread.
static void Celartem::ThreadUtil::join |
( |
void * |
threadHandle | ) |
|
|
static |
This function waits for the thread to finish running.
- Parameters
-
threadHandle | The handle of thread. |
Referenced by Celartem::Thread::join().
The documentation for this struct was generated from the following file: