diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-10-19 01:29:34 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-10-19 01:29:34 +0200 |
commit | 6d5a8892f34f4034b38da467268de9d489e1024e (patch) | |
tree | 787fe7d59be7e54a74fcc597eb6e59cf4523ee67 /src/OSSupport/CriticalSection.cpp | |
parent | InfoDump: Fixed trailing whitespace. (diff) | |
download | cuberite-6d5a8892f34f4034b38da467268de9d489e1024e.tar cuberite-6d5a8892f34f4034b38da467268de9d489e1024e.tar.gz cuberite-6d5a8892f34f4034b38da467268de9d489e1024e.tar.bz2 cuberite-6d5a8892f34f4034b38da467268de9d489e1024e.tar.lz cuberite-6d5a8892f34f4034b38da467268de9d489e1024e.tar.xz cuberite-6d5a8892f34f4034b38da467268de9d489e1024e.tar.zst cuberite-6d5a8892f34f4034b38da467268de9d489e1024e.zip |
Diffstat (limited to 'src/OSSupport/CriticalSection.cpp')
-rw-r--r-- | src/OSSupport/CriticalSection.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OSSupport/CriticalSection.cpp b/src/OSSupport/CriticalSection.cpp index 5dfc8b5f9..3e8e7498d 100644 --- a/src/OSSupport/CriticalSection.cpp +++ b/src/OSSupport/CriticalSection.cpp @@ -59,7 +59,7 @@ void cCriticalSection::Lock() #ifdef _DEBUG m_IsLocked += 1; - m_OwningThreadID = cIsThread::GetCurrentID(); + m_OwningThreadID = std::this_thread::get_id(); #endif // _DEBUG } @@ -97,7 +97,7 @@ bool cCriticalSection::IsLocked(void) bool cCriticalSection::IsLockedByCurrentThread(void) { - return ((m_IsLocked > 0) && (m_OwningThreadID == cIsThread::GetCurrentID())); + return ((m_IsLocked > 0) && (m_OwningThreadID == std::this_thread::get_id())); } #endif // _DEBUG |