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