Queue bug fixed: Notify_all vs. one

This commit is contained in:
gineshidalgo99
2017-05-06 21:10:15 -04:00
parent 61404f11f9
commit a74eb160f4
+3 -3
View File
@@ -440,7 +440,7 @@ namespace op
return false;
mTQueue.emplace(tDatums);
mConditionVariable.notify_one();
mConditionVariable.notify_all();
return true;
}
catch (const std::exception& e)
@@ -459,7 +459,7 @@ namespace op
return false;
mTQueue.push(tDatums);
mConditionVariable.notify_one();
mConditionVariable.notify_all();
return true;
}
catch (const std::exception& e)
@@ -478,7 +478,7 @@ namespace op
return false;
mTQueue.pop();
mConditionVariable.notify_one();
mConditionVariable.notify_all();
return true;
}
catch (const std::exception& e)