package saturn_lockfree
Module Lockfree.Single_prod_single_cons_queueSource
Single producer single consumer queue.
Type of single-producer single-consumer non-resizable domain-safe queue that works in FIFO order.
create ~size_exponent:int returns a new queue of maximum size 2^size_exponent and initially empty.
push q v adds the element v at the end of the queue q. This method can be used by at most one domain at the time.
pop q removes and returns the first element in queue q, or returns None if the queue is empty. This method can be used by at most one domain at the time.