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.
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.