Core/Threading: Clarified comment on ProducerConsumerQueue::WaitAndPop

(cherry picked from commit 08316552b5b176e8209d7e8f15c53053d049743d)
This commit is contained in:
Shauren authored and DDuarte committed 2015-07-19 00:48:17 +01:00
1 parent 5ceb3fd0ab
commit f880f2e778
1 file changed
+2 -1
@@ -70,7 +70,8 @@ public:
{
std::unique_lock<std::mutex> lock(_queueLock);
// we could be using .wait(lock, predicate) overload here but some threading error analysis tools produce false positives
// we could be using .wait(lock, predicate) overload here but it is broken
// https://connect.microsoft.com/VisualStudio/feedback/details/1098841
while (_queue.empty() && !_shutdown)
_condition.wait(lock);