mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
ConcurrentQueue::nextJob: notify all _waitVar threads
Replace _waitVar.notify_one() with _waitVar.notify_all(). This was the only hurdle to documenting ConcurrentQueue::waitAll() as thread-safe. ConcurrentQueueTest::waitAllFromMultipleThreads() passes instead of hanging now.
This commit is contained in:
parent
2cbcaaa391
commit
e8b5f42e75
@ -113,7 +113,7 @@ private:
|
||||
--jobsLeft;
|
||||
}
|
||||
|
||||
_waitVar.notify_one();
|
||||
_waitVar.notify_all();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user