Public Types | Static Public Member Functions | List of all members
Celartem::ThreadUtil Struct Reference

Public Types

typedef void(CEL_API * ThreadEntryPoint )(void *inParam)
 

Static Public Member Functions

static void * create (ThreadEntryPoint entryPoint, void *inParam)
 
static void join (void *threadHandle)
 
static void close (void *threadHandle)
 
static size_t getThreadId ()
 

Member Typedef Documentation

typedef void(CEL_API * Celartem::ThreadUtil::ThreadEntryPoint)(void *inParam)

The definition of the thread entry point for threadCreate function.

Parameters
inParamThe second parameter passed to threadCreate function.

Member Function Documentation

static void Celartem::ThreadUtil::close ( void *  threadHandle)
static

This function closes the handle of the thread.

Parameters
threadHandleThe 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
entryPointPointer to the thread entry point.
inParamThread 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
threadHandleThe handle of thread.

Referenced by Celartem::Thread::join().


The documentation for this struct was generated from the following file:

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo