Next: sb-rotate-byte, Previous: sb-md5, Up: Contributed Modules
The sb-queue module, loadable by
(require :sb-queue)
provides a thread-safe lockless FIFO queues.
Class precedence list:
queue, structure-object, tLock-free thread safe queue.
enqueuecan be used to add objects to the queue, anddequeueretrieves items from the queue infifoorder.
Retrieves the oldest value in
queueand returns it as the primary value, andtas secondary value. If the queue is empty, returnsnilas both primary and secondary value.
Returns the contents of
queueas a list without removing them from thequeue. Mainly useful for manual examination of queue state.
Returns a new
queuewithnameand contents of theinitial-contentssequence enqueued.
Returns the number of objects in
queue. Mainly useful for manual examination of queue state, and inprint-objectmethods: inefficient as it walks the entire queue.