Core/Socket: Removed unused synchronous read method

This commit is contained in:
Shauren
2015-04-24 00:10:04 +02:00
parent 15a5eb4e35
commit 59e9bcf0bf
3 changed files with 6 additions and 23 deletions

View File

@@ -70,7 +70,9 @@ public:
{
std::unique_lock<std::mutex> lock(_queueLock);
_condition.wait(lock, [this]() { return !_queue.empty() || _shutdown; });
// we could be using .wait(lock, predicate) overload here but some threading error analysis tools produce false positives
while (_queue.empty() && !_shutdown)
_condition.wait(lock);
if (_queue.empty() || _shutdown)
return;