diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-10 18:37:00 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-03-10 18:37:00 +0100 |
commit | 1a5ebb44aa4ed3aecc84a8d6f0422d504db1ec44 (patch) | |
tree | d56236f57100b68f5a1f22afbca1d477af4aadf2 /source/cChunkGenerator.cpp | |
parent | Was using "#else if" which is not valid apparently, now using "#elif" (diff) | |
download | cuberite-1a5ebb44aa4ed3aecc84a8d6f0422d504db1ec44.tar cuberite-1a5ebb44aa4ed3aecc84a8d6f0422d504db1ec44.tar.gz cuberite-1a5ebb44aa4ed3aecc84a8d6f0422d504db1ec44.tar.bz2 cuberite-1a5ebb44aa4ed3aecc84a8d6f0422d504db1ec44.tar.lz cuberite-1a5ebb44aa4ed3aecc84a8d6f0422d504db1ec44.tar.xz cuberite-1a5ebb44aa4ed3aecc84a8d6f0422d504db1ec44.tar.zst cuberite-1a5ebb44aa4ed3aecc84a8d6f0422d504db1ec44.zip |
Diffstat (limited to 'source/cChunkGenerator.cpp')
-rw-r--r-- | source/cChunkGenerator.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/cChunkGenerator.cpp b/source/cChunkGenerator.cpp index 83375fc5b..e6296baa6 100644 --- a/source/cChunkGenerator.cpp +++ b/source/cChunkGenerator.cpp @@ -69,7 +69,7 @@ bool cChunkGenerator::Start(cWorld * a_World, const AString & a_WorldGeneratorNa void cChunkGenerator::Stop(void)
{
- mShouldTerminate = true;
+ m_ShouldTerminate = true;
m_Event.Set();
m_evtRemoved.Set(); // Wake up anybody waiting for empty queue
Wait();
@@ -115,7 +115,7 @@ void cChunkGenerator::GenerateChunk(int a_ChunkX, int a_ChunkY, int a_ChunkZ) void cChunkGenerator::WaitForQueueEmpty(void)
{
cCSLock Lock(m_CS);
- while (!mShouldTerminate && !m_Queue.empty())
+ while (!m_ShouldTerminate && !m_Queue.empty())
{
cCSUnlock Unlock(Lock);
m_evtRemoved.Wait();
@@ -138,14 +138,14 @@ int cChunkGenerator::GetQueueLength(void) void cChunkGenerator::Execute(void)
{
- while (!mShouldTerminate)
+ while (!m_ShouldTerminate)
{
cCSLock Lock(m_CS);
while (m_Queue.size() == 0)
{
cCSUnlock Unlock(Lock);
m_Event.Wait();
- if (mShouldTerminate)
+ if (m_ShouldTerminate)
{
return;
}
|