Results 153 comments of Cameron

Not supported. But you could try using a series of queues, one for each level of priority you need.

How is `nice_queue` created? When is it destructed? What is the producer thread doing?

Copying my questions here: Are the consumers keeping up with the producers? Are there many temporary threads enqueueing elements? Is this reproducible with the latest version of the queue? Also,...

My SPSC implementation (ReaderWriterQueue) is completely different. The only thing in common is that it reuses memory internally as well, only releasing it on destruction. So that could be the...

@erenkal, there's no backpressure in that example. If enqueueing is even slightly faster than dequeueing on average, the queue's size will grow indefinitely.

@tolgatanriverdi, what are the queues' sizes before shutting down? And how many different threads call add?

That depends on a lot of factors, but often yes.

@hlide: Yes, that was my intention. I didn't know the instruction length was different, though -- does it make any difference to performance? EDIT: It does not. Both `std::atomic` and...

Ah, yes, I hadn't considered the cacheline implications. Interesting. @hlide: Hmm, MPSC. I don't know of any off the top of my head -- you're probably best off picking a...