From 5df94ff719eccd04c7450df35fb5e3f2b36e2ee7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 13 Jul 2014 10:50:59 +0000 Subject: 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 --- include/m_system_cpp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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); } }; /////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3