summaryrefslogtreecommitdiffstats
path: root/source/cChunk.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-30 22:54:40 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-01-30 22:54:40 +0100
commitb834841aa1fc33db987e9d0b95e1678974064d04 (patch)
tree1de2841336d687a60cb6b43d19786489d1c1b857 /source/cChunk.cpp
parentAdded a WebAdmin interface to view users their groups, and the permissions of groups. (diff)
downloadcuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar
cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar.gz
cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar.bz2
cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar.lz
cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar.xz
cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.tar.zst
cuberite-b834841aa1fc33db987e9d0b95e1678974064d04.zip
Diffstat (limited to 'source/cChunk.cpp')
-rw-r--r--source/cChunk.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/cChunk.cpp b/source/cChunk.cpp
index 5e9c44a18..abe1d0443 100644
--- a/source/cChunk.cpp
+++ b/source/cChunk.cpp
@@ -249,7 +249,7 @@ void cChunk::Tick(float a_Dt)
}
m_pState->PendingSendBlocks.clear();
}
- cCSUnlock Unlock( Lock );
+ Lock.Unlock();
while( !m_pState->UnloadQuery.empty() )
{
@@ -261,10 +261,10 @@ void cChunk::Tick(float a_Dt)
m_pState->UnloadQuery.remove( *m_pState->UnloadQuery.begin() );
}
- m_pState->BlockListCriticalSection.Lock();
+ cCSLock Lock2(m_pState->BlockListCriticalSection);
std::map< unsigned int, int > ToTickBlocks = m_pState->ToTickBlocks;
m_pState->ToTickBlocks.clear();
- m_pState->BlockListCriticalSection.Unlock();
+ Lock2.Unlock();
bool isRedstone = false;
for( std::map< unsigned int, int>::iterator itr = ToTickBlocks.begin(); itr != ToTickBlocks.end(); ++itr )