summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-13 10:50:59 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-13 10:50:59 +0000
commit5df94ff719eccd04c7450df35fb5e3f2b36e2ee7 (patch)
tree440d736b199ff849ca0619adf355ffc73750ca7f /include
parent70496fb739225b559a251f4518c946110aef718c (diff)
wrapping the most evident critical sections into a class
git-svn-id: http://svn.miranda-ng.org/main/trunk@9785 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r--include/m_system_cpp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h
index 8e887ff13f..de6f6e6789 100644
--- a/include/m_system_cpp.h
+++ b/include/m_system_cpp.h
@@ -81,8 +81,8 @@ class mir_cslock
CRITICAL_SECTION& cs;
public:
- __inline mir_cslock(CRITICAL_SECTION& _cs) : cs(_cs) { EnterCriticalSection(&cs); }
- __inline ~mir_cslock() { LeaveCriticalSection(&cs); }
+ __inline mir_cslock(CRITICAL_SECTION& _cs) : cs(_cs) { ::EnterCriticalSection(&cs); }
+ __inline ~mir_cslock() { ::LeaveCriticalSection(&cs); }
};
///////////////////////////////////////////////////////////////////////////////