summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/OSSupport/Queue.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/OSSupport/Queue.h b/src/OSSupport/Queue.h
index bf6d7e451..fc942b3e1 100644
--- a/src/OSSupport/Queue.h
+++ b/src/OSSupport/Queue.h
@@ -134,8 +134,15 @@ public:
bool Remove(ItemType item)
{
cCSLock Lock(m_CS);
- m_evtRemoved.Set();
- return m_contents.remove(item);
+ for (iterator itr = m_contents.begin(); itr != m_contents.end(); ++itr)
+ {
+ if((*itr) == a_item) {
+ m_contents.erase(itr);
+ m_evtRemoved.Set();
+ return true;
+ }
+ }
+ return false;
}
private: