summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-01-03 18:42:35 +0100
committerTycho <work.tycho+git@gmail.com>2014-01-03 18:42:35 +0100
commitd26c0e3815a8e3c38447eeb65b052a5d7c43da73 (patch)
treedbeceaca31be219c2e7a5001473280d0c6f7dc62
parentderp (diff)
downloadcuberite-d26c0e3815a8e3c38447eeb65b052a5d7c43da73.tar
cuberite-d26c0e3815a8e3c38447eeb65b052a5d7c43da73.tar.gz
cuberite-d26c0e3815a8e3c38447eeb65b052a5d7c43da73.tar.bz2
cuberite-d26c0e3815a8e3c38447eeb65b052a5d7c43da73.tar.lz
cuberite-d26c0e3815a8e3c38447eeb65b052a5d7c43da73.tar.xz
cuberite-d26c0e3815a8e3c38447eeb65b052a5d7c43da73.tar.zst
cuberite-d26c0e3815a8e3c38447eeb65b052a5d7c43da73.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/Queue.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/OSSupport/Queue.h b/src/OSSupport/Queue.h
index ab42c871e..cde26e415 100644
--- a/src/OSSupport/Queue.h
+++ b/src/OSSupport/Queue.h
@@ -69,10 +69,8 @@ public:
m_evtAdded.Set();
}
- // Dequeues an Item from the queue if any are present, provides no
- // guarantees about success if the list is empty but an item is enqueued at
- // the same time. Returns true if successful. Value of item is undefined if
- // Dequeuing was unsuccessful.
+ // Dequeues an Item from the queue if any are present. Returns true if
+ // successful. Value of item is undefined if Dequeuing was unsuccessful.
bool TryDequeueItem(ItemType& item)
{
cCSLock Lock(m_CS);