Bounded Queues
-
Declaration
Swift
public protocol AtomicQueueProtocol
-
A bounded FIFO queue that is safe to share among a single producer and a single consumer.
This is an implementation of
See morebounded MPMC queue
from 1024cores.net, with a modification onpush
andpop
to remove synchronisation.Declaration
Swift
public final class AtomicSPSCQueue<Element> : AtomicQueueProtocol
-
A bounded FIFO queue that is safe to share among a single producer and multiple consumers.
This is an implementation of
See morebounded MPMC queue
from 1024cores.net, with a modification onpush
to remove synchronisation.Declaration
Swift
public final class AtomicSPMCQueue<Element> : AtomicQueueProtocol
-
A bounded FIFO queue that is safe to share among multiple producers and one consumer.
This is an implementation of
See morebounded MPMC queue
from 1024cores.net, with a modification onpop
to remove synchronisation.Declaration
Swift
public final class AtomicMPSCQueue<Element> : AtomicQueueProtocol
-
A bounded FIFO queue that is safe to share among multiple producers and consumers.
This is an implementation of
See morebounded MPMC queue
from 1024cores.net.Declaration
Swift
public final class AtomicMPMCQueue<Element> : AtomicQueueProtocol