diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-05 22:45:45 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-02-05 22:50:18 +0100 |
commit | ca6ef58b1ee8521e4b940ee4883dee714960e413 (patch) | |
tree | 8532add455224b07c07a759e3d906f50c0695888 /src/OSSupport/Queue.h | |
parent | Merge pull request #2972 from marvinkopf/PlayerAutoComplete (diff) | |
download | cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar.gz cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar.bz2 cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar.lz cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar.xz cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.tar.zst cuberite-ca6ef58b1ee8521e4b940ee4883dee714960e413.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/Queue.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/OSSupport/Queue.h b/src/OSSupport/Queue.h index 00d21c49b..d5a4bd443 100644 --- a/src/OSSupport/Queue.h +++ b/src/OSSupport/Queue.h @@ -26,7 +26,7 @@ public: /** Called when an Item is deleted from the queue without being returned */ static void Delete(T) {} - + /** Called when an Item is inserted with EnqueueItemIfNotPresent and there is another equal value already inserted */ static void Combine(T & a_existing, const T & a_new) { @@ -44,10 +44,10 @@ class cQueue { // The actual storage type for the queue typedef typename std::list<ItemType> QueueType; - + // Make iterator an alias for the QueueType's iterator typedef typename QueueType::iterator iterator; - + public: cQueue() {} ~cQueue() {} @@ -188,13 +188,13 @@ public: private: /** The contents of the queue */ QueueType m_Contents; - + /** Mutex that protects access to the queue contents */ cCriticalSection m_CS; - + /** Event that is signalled when an item is added */ cEvent m_evtAdded; - + /** Event that is signalled when an item is removed (both dequeued or erased) */ cEvent m_evtRemoved; }; |