Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IThread::initialize ( P6THREADFLAGS  fFlags,
const P6WCHAR pcszwThreadName,
P6UINT32  cStack,
P6THREADPRIORITY  nPriority,
P6THREADMAIN  pfnThread,
P6VOID pArg 
)
pure virtual

This method initializes the component for use and must be called before calling any other method.

Parameters
fFlagsThe P6THREADFLAGS to use for this thread. Currently this MUST be set to P6TF_NONE.
pcszwThreadNameA pointer to a P6WCHAR* containing the name of the thread. This will be displayed in the running thread table and returned by getThreadInfo(). The name is limited to P6MAXTHREADNAME characters in length.
cStackThe size of the new threads stack, or zero to the operating systems default (recommended).
nPriorityThe P6THREADPRIORITY that the thread will have when it starts.
pfnThreadThe address of the thread P6THREADMAIN routine. This is the threads "main" and will be called with pArg when the thread is started. When the routine exits, the thread will be terminated.
pArgA caller defined context that wil be passed into the thread on startup.
Returns