diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-12-18 23:39:07 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:48:05 +0300 |
commit | 3841eefecc8f83d47c9a654678b5d8ece6a80ba5 (patch) | |
tree | 837e9f9ee9d883e9ee7286ac2acab1ebc16dd66c /base | |
parent | d0b8be1501d9c680fda01cb795b92c421f84da35 (diff) |
fixed small bug in ThreadedList.
Diffstat (limited to 'base')
-rw-r--r-- | base/threaded_list.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/base/threaded_list.hpp b/base/threaded_list.hpp index 50c6c4f809..5d97f98ab5 100644 --- a/base/threaded_list.hpp +++ b/base/threaded_list.hpp @@ -44,9 +44,8 @@ public: bool doSignal = m_list.empty(); - m_isEmpty = doSignal; - m_list.push_back(t); + m_isEmpty = false; if (doSignal) m_Cond.Signal(); @@ -58,9 +57,8 @@ public: bool doSignal = m_list.empty(); - m_isEmpty = doSignal; - m_list.push_front(t); + m_isEmpty = false; if (doSignal) m_Cond.Signal(); |