SCMPQueue.addProducer

Register number of producers

For the algorithm to know, the queue must know how many concurrent threads might be pushing data at any point. This function add producers to the number of currently registered producers.

This function must only be called from the main thread, and before any queue activity has actually started.

  1. void addProducers(size_t numProducers)
  2. void addProducer()
    struct SCMPQueue(T, size_t size)
    nothrow @safe @nogc
    void
    addProducer
    ()

Meta