mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
ConcurrentQueue: Update to HEAD
This commit is contained in:
+1
-1
@@ -186,7 +186,7 @@ for (int i = 0; i != ProducerCount; ++i) {
|
||||
for (int i = 0; i != ConsumerCount; ++i) {
|
||||
consumers[i] = std::thread([&]() {
|
||||
Item item;
|
||||
while (promisedElementsRemaining.fetch_sub(1, std::memory_order_relaxed)) {
|
||||
while (promisedElementsRemaining.fetch_sub(1, std::memory_order_relaxed) > 0) {
|
||||
q.wait_dequeue(item);
|
||||
consumeItem(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user