Bounded Queues

  • A bounded FIFO queue that is safe to share among a single producer and a single consumer.

    This is an implementation of bounded MPMC queue from 1024cores.net, with a modification on push and pop to remove synchronisation.

    See more

    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 bounded MPMC queue from 1024cores.net, with a modification on push to remove synchronisation.

    See more

    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 bounded MPMC queue from 1024cores.net, with a modification on pop to remove synchronisation.

    See more

    Declaration

    Swift

    public final class AtomicMPSCQueue<Element> : AtomicQueueProtocol