summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/IsThread.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-13 22:54:01 +0100
committermadmaxoft <github@xoft.cz>2013-11-13 22:54:01 +0100
commit99da44095aa6fa503bc54f39cfb447be7edf88a1 (patch)
tree651ae4deaaa0641550cfbfa437628a6f4d29629a /source/OSSupport/IsThread.cpp
parentMerge remote-tracking branch 'origin/WolfUpdate' (diff)
downloadcuberite-99da44095aa6fa503bc54f39cfb447be7edf88a1.tar
cuberite-99da44095aa6fa503bc54f39cfb447be7edf88a1.tar.gz
cuberite-99da44095aa6fa503bc54f39cfb447be7edf88a1.tar.bz2
cuberite-99da44095aa6fa503bc54f39cfb447be7edf88a1.tar.lz
cuberite-99da44095aa6fa503bc54f39cfb447be7edf88a1.tar.xz
cuberite-99da44095aa6fa503bc54f39cfb447be7edf88a1.tar.zst
cuberite-99da44095aa6fa503bc54f39cfb447be7edf88a1.zip
Diffstat (limited to '')
-rw-r--r--source/OSSupport/IsThread.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/OSSupport/IsThread.cpp b/source/OSSupport/IsThread.cpp
index e1ef84c17..4da9f9949 100644
--- a/source/OSSupport/IsThread.cpp
+++ b/source/OSSupport/IsThread.cpp
@@ -53,7 +53,7 @@ static void SetThreadName( DWORD dwThreadID, LPCSTR szThreadName)
cIsThread::cIsThread(const AString & iThreadName) :
m_ThreadName(iThreadName),
m_ShouldTerminate(false),
- m_Handle(NULL)
+ m_Handle(NULL_HANDLE)
{
}
@@ -73,8 +73,7 @@ cIsThread::~cIsThread()
bool cIsThread::Start(void)
{
- ASSERT(m_Handle == NULL); // Has already started one thread?
-
+ ASSERT(m_Handle == NULL_HANDLE); // Has already started one thread?
#ifdef _WIN32
// Create the thread suspended, so that the mHandle variable is valid in the thread procedure
DWORD ThreadID = 0;
@@ -111,7 +110,7 @@ bool cIsThread::Start(void)
void cIsThread::Stop(void)
{
- if (m_Handle == NULL)
+ if (m_Handle == NULL_HANDLE)
{
return;
}