From a74eb160f438acccafbc8c72e5f0841bbc1f50d2 Mon Sep 17 00:00:00 2001 From: gineshidalgo99 Date: Sat, 6 May 2017 21:10:15 -0400 Subject: [PATCH] Queue bug fixed: Notify_all vs. one --- include/openpose/thread/queueBase.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/openpose/thread/queueBase.hpp b/include/openpose/thread/queueBase.hpp index cff72cfe..b6a77f30 100644 --- a/include/openpose/thread/queueBase.hpp +++ b/include/openpose/thread/queueBase.hpp @@ -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)