CMSimpleQueueCreate(allocator:capacity:queueOut:)
Creates a queue that has the specified capacity.
Declaration
func CMSimpleQueueCreate(allocator: CFAllocator?, capacity: Int32, queueOut: UnsafeMutablePointer<CMSimpleQueue?>) -> OSStatusParameters
- allocator:
Allocator used to allocate storage for the queue.
- capacity:
Capacity of the queue (maximum number of elements holdable at any given time). Required (must not be
0). Must be a positive value. - queueOut:
On output, a reference to the newly created queue. Must not be
NULL.
Return Value
A result code. See Simple Queue Error Codes.
Discussion
On return, the caller owns the returned CMSimpleQueue, and must release it when done with it.