A CC Queue, which is:-
- Faster than the MSQueue (Michael-Scott Queue, as used in Java)
And suitable for use with multiple memory allocators, including ones that use persistent memory.
- Create a new instance of
- Create a handle per-thread using
- Enqueue and dequeue
The API may need to change to make it easier to manage the per-thread handle objects.
Allocators allow customization of the backing memory used by this queue. One use case is to be able to use persistent memory.
This is the cc queue object.
It is safe to send references between threads.
Each thread accessing the queue should call
This structure is allocated for each thread that wants to access a queue.