Results 153 comments of Cameron

Use one token per producer and one per consumer. There's some basic info in the README.

This is not possible with ConcurrentQueue. It's a data structure, but you seem to be searching for something closer to a messaging system. You could, however, use N queues for...

Not possible with this data structure. Example use: Consider a threadpool processing a series of jobs. Each thread pulls a different job from the work queue.

Am indeed curious about the hang. Could it possibly be just very, very slow? The `std::queue`-based implementation is dead simple.

Best guess: something might be so fast it's taking 0 ns :-)

👍 Thanks for your help! Will leave these open for now until I have a chance to look more deeply at the results (could be a while!). Don't think you...

Dequeue them all. If you know the queue is not being accessed concurrently by other threads, you can also start fresh like so: ConcurrentQueue q; ... q = ConcurrentQueue();

Yes, any output iterator will do for `dequeue_bulk`, and any input iterator for `enqueue_bulk`.

Sorry for the long delay, this one initially slipped through the cracks. I haven't had time to dig into this properly, just wanted to let you know it's not forgotten.

> Can you merge these changes into master? I've encountered similar symptoms and would prefer to use a release. They are already in master. Created a new release (v1.0.4). Closing...