summaryrefslogtreecommitdiffstats
path: root/source/cIsThread.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 18:37:00 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-03-10 18:37:00 +0100
commit1a5ebb44aa4ed3aecc84a8d6f0422d504db1ec44 (patch)
treed56236f57100b68f5a1f22afbca1d477af4aadf2 /source/cIsThread.h
parentWas using "#else if" which is not valid apparently, now using "#elif" (diff)
downloadcuberite-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/cIsThread.h')
-rw-r--r--source/cIsThread.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/source/cIsThread.h b/source/cIsThread.h
index 55bb62a11..20084dfad 100644
--- a/source/cIsThread.h
+++ b/source/cIsThread.h
@@ -28,7 +28,7 @@ class cIsThread
protected:
virtual void Execute(void) = 0; // This function is called in the new thread's context
- volatile bool mShouldTerminate; // The overriden Execute() method should check this periodically and terminate if this is true
+ volatile bool m_ShouldTerminate; // The overriden Execute() method should check this periodically and terminate if this is true
public:
cIsThread(const AString & iThreadName);
@@ -40,26 +40,26 @@ public:
static unsigned long GetCurrentID(void); // Returns the OS-dependent thread ID for the caller's thread
private:
- AString mThreadName;
+ AString m_ThreadName;
#ifdef _WIN32
- HANDLE mHandle;
+ HANDLE m_Handle;
- static DWORD_PTR __stdcall thrExecute(LPVOID iParam)
+ static DWORD_PTR __stdcall thrExecute(LPVOID a_Param)
{
- ((cIsThread *)iParam)->Execute();
+ ((cIsThread *)a_Param)->Execute();
return 0;
}
#else // _WIN32
- pthread_t mHandle;
- bool mHasStarted;
+ pthread_t m_Handle;
+ bool m_HasStarted;
- static void * thrExecute(void * iParam)
+ static void * thrExecute(void * a_Param)
{
- ((cIsThread *)iParam)->Execute();
+ ((cIsThread *)a_Param)->Execute();
return NULL;
}