Fixed *nix threading issue;
Thread objects now use variable names consistent with MCS convention; Fixed a few *nix threading cornercases git-svn-id: http://mc-server.googlecode.com/svn/trunk@392 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -30,7 +30,7 @@ cChunkSender::cChunkSender(void) :
|
||||
|
||||
cChunkSender::~cChunkSender()
|
||||
{
|
||||
mShouldTerminate = true;
|
||||
m_ShouldTerminate = true;
|
||||
m_evtQueue.Set();
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ void cChunkSender::RemoveClient(cClientHandle * a_Client)
|
||||
|
||||
void cChunkSender::Execute(void)
|
||||
{
|
||||
while (!mShouldTerminate)
|
||||
while (!m_ShouldTerminate)
|
||||
{
|
||||
cCSLock Lock(m_CS);
|
||||
while (m_ChunksReady.empty() && m_SendChunks.empty())
|
||||
@@ -108,7 +108,7 @@ void cChunkSender::Execute(void)
|
||||
cCSUnlock Unlock(Lock);
|
||||
m_evtRemoved.Set(); // Notify that the removed clients are safe to be deleted
|
||||
m_evtQueue.Wait();
|
||||
if (mShouldTerminate)
|
||||
if (m_ShouldTerminate)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user