summaryrefslogtreecommitdiff
path: root/include/m_system.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/m_system.h')
-rw-r--r--include/m_system.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/m_system.h b/include/m_system.h
index 18000d6778..5226961d0f 100644
--- a/include/m_system.h
+++ b/include/m_system.h
@@ -497,18 +497,17 @@ public:
///////////////////////////////////////////////////////////////////////////////
// thread handle controller
-class MThreadHandle
+class MThreadLock
{
HANDLE &m_pHandle;
public:
- MThreadHandle(HANDLE &pHandle) :
+ __forceinline MThreadLock(HANDLE &pHandle) :
m_pHandle(pHandle)
{
- pHandle = ::GetCurrentThread();
}
- ~MThreadHandle()
+ __forceinline ~MThreadLock()
{
m_pHandle = nullptr;
}