summaryrefslogtreecommitdiff
path: root/include/m_system_cpp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/m_system_cpp.h')
-rw-r--r--include/m_system_cpp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h
index c0b324f02b..2bb6d545a1 100644
--- a/include/m_system_cpp.h
+++ b/include/m_system_cpp.h
@@ -79,6 +79,7 @@ public:
class mir_cslock
{
CRITICAL_SECTION& cs;
+ __inline mir_cslock& operator = (const mir_cslock&) { return *this; }
public:
__inline mir_cslock(CRITICAL_SECTION& _cs) : cs(_cs) { ::EnterCriticalSection(&cs); }
@@ -92,6 +93,7 @@ class mir_cslockfull
{
CRITICAL_SECTION& cs;
bool bIsLocked;
+ __inline mir_cslockfull& operator = (const mir_cslockfull&) { return *this; }
public:
__inline void lock() { bIsLocked = true; EnterCriticalSection(&cs); }