concurrentqueue
concurrentqueue copied to clipboard
Program crashed when it calls try_dequeue_bulk, how to handle this ?
Here is my structure definition:

And some codes:

Don't see anything wrong with the code posted. Can you reduce it to a self-contained example?
Hi @cameron314, I didn't know where to ask exactly so I'm using this issue. Related to bulk operations, can they be used with STL containers (such as an std::vector or an std::list), or just with plain old arrays like in this issue? I see *dequeue_bulk* methods accept a sort of iterator, but I'm not sure what to pass.
Thank you
Yes, any output iterator will do for dequeue_bulk, and any input iterator for enqueue_bulk.