replace piForeach* to for(:)
another c++11 try ...
This commit is contained in:
@@ -164,7 +164,7 @@ public:
|
||||
T t;
|
||||
mutex.lock();
|
||||
bool isNotEmpty = !PIDeque<T>::isEmpty();
|
||||
t = isNotEmpty ? T(PIDeque<T>::take_front()) : defaultVal;
|
||||
t = isNotEmpty ? PIDeque<T>::take_front() : defaultVal;
|
||||
mutex.unlock();
|
||||
if (isNotEmpty) cond_var_rem->notifyOne();
|
||||
if (isOk) *isOk = isNotEmpty;
|
||||
|
||||
Reference in New Issue
Block a user