KosQueueCreate()
KosQueueCreate()
This function is declared in the kos/queue.h file.
KosQueueHandle KosQueueCreate(unsigned objCount,
unsigned objSize,
unsigned objAlign,
void *buffer);
This function creates a queue of objects (fifo) and the buffer associated with this queue.
Parameters:
objCountis the maximum number of objects in the queue.objSizeis the object size (bytes).objAlignis the object alignment in bytes, and must be a power of two.bufferis the pointer to the external buffer for objects; if it is set equal to RTL_NULL, the buffer will be allocated by using theKosMemAlloc()function.
Returns the handle of the created queue and RTL_NULL if there is an error.
Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.