mirror of
https://github.com/gosticks/openpose.git
synced 2026-12-06 11:41:46 +00:00
Queue bug fixed: Notify_all vs. one
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user