summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Queue.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2015-01-25 00:57:20 +0100
committerHowaner <franzi.moos@googlemail.com>2015-01-25 00:57:20 +0100
commit6678863f7f7c0fd29bc81e13144f0f054b0162eb (patch)
treea2ce3bb46e396f50f4742711864d9e0327df6457 /src/OSSupport/Queue.h
parentAdded sponge. (diff)
parentGamosocm support (diff)
downloadcuberite-6678863f7f7c0fd29bc81e13144f0f054b0162eb.tar
cuberite-6678863f7f7c0fd29bc81e13144f0f054b0162eb.tar.gz
cuberite-6678863f7f7c0fd29bc81e13144f0f054b0162eb.tar.bz2
cuberite-6678863f7f7c0fd29bc81e13144f0f054b0162eb.tar.lz
cuberite-6678863f7f7c0fd29bc81e13144f0f054b0162eb.tar.xz
cuberite-6678863f7f7c0fd29bc81e13144f0f054b0162eb.tar.zst
cuberite-6678863f7f7c0fd29bc81e13144f0f054b0162eb.zip
Diffstat (limited to '')
-rw-r--r--src/OSSupport/Queue.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OSSupport/Queue.h b/src/OSSupport/Queue.h
index 82f221453..afbde1b0d 100644
--- a/src/OSSupport/Queue.h
+++ b/src/OSSupport/Queue.h
@@ -86,7 +86,7 @@ public:
bool TryDequeueItem(ItemType & item)
{
cCSLock Lock(m_CS);
- if (m_Contents.size() == 0)
+ if (m_Contents.empty())
{
return false;
}
@@ -101,7 +101,7 @@ public:
ItemType DequeueItem(void)
{
cCSLock Lock(m_CS);
- while (m_Contents.size() == 0)
+ while (m_Contents.empty())
{
cCSUnlock Unlock(Lock);
m_evtAdded.Wait();