Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IQueueManager::initialize ( P6QFLAGS  fFlags,
const P6WCHAR pcszQueueName,
P6INT32  cThreads,
QUEUEWORKER  pfnWorker,
P6VOID pCtx 
)
pure virtual

This must be called before any other method to initial the queue for use.

Parameters
fFlags[ in ] P6QFLAGS Control flags
pcszQueueName[ in ] The name to give this queue. This can be retrieved later using the p6IQueue interfaces getName() method.
cThreads[ in ] The number of worker threads to create for this queue.
pfnWorker[ in ] A pointer to an QUEUEWORKER function which will be used to process p6IMessage's that are enqueued to this queue. This lifetime of this function must be greater than or equal to the liftime of the queue.
pCtx[ in ] Application context that is returned to pfnWorker callback.
Returns
Success - eOk
Failure - Any valid P6R::P6ERR