mirror of
https://github.com/niellun/FastCarPlay.git
synced 2026-06-07 09:38:25 +02:00
Better decoder, minor refactoring
This commit is contained in:
@@ -72,10 +72,9 @@ public:
|
||||
{
|
||||
unique_lock<std::mutex> lock(_mtx);
|
||||
|
||||
bool exit = _count > count;
|
||||
_lock.wait(lock, [&]
|
||||
{ return _count > count || !waitFlag; });
|
||||
return !exit;
|
||||
return waitFlag;
|
||||
}
|
||||
|
||||
void clear()
|
||||
|
||||
Reference in New Issue
Block a user