Mount Fuji Engine  0.8b
MF_API MFThread MFThread_CreateThread ( const char *  pName,
MFThreadEntryPoint  pEntryPoint,
void *  pUserData,
int  priority = MFPriority_Normal,
uint32  flags = 0,
uint32  stackSize = 0 
)

Creates and start a new thread.

Parameters
pNameName to identify the new thread.
pEntryPointPointer to the entry point function for the new thread.
pUserDataPointer to be passed to the new threads entry point.
priorityThe threads execution priority.
flagsOptional creation flags from MFThreadFlags.
stackSizeSize of the new threads stack.
Returns
A handle to the new thread.
See Also
MFThread_TerminateThread(), MFThread_ExitThread(), MFThread_GetExitCode(), MFThread_DestroyThread()