From 1e089e1f91c7280712d03947d60c0d922a414c34 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 May 2015 21:53:52 +0000 Subject: FTPFile to use standard locks git-svn-id: http://svn.miranda-ng.org/main/trunk@13806 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/FTPFileYM/src/utils.h | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'plugins/FTPFileYM/src/utils.h') diff --git a/plugins/FTPFileYM/src/utils.h b/plugins/FTPFileYM/src/utils.h index 3b22ccc7d6..ef3904e592 100644 --- a/plugins/FTPFileYM/src/utils.h +++ b/plugins/FTPFileYM/src/utils.h @@ -43,29 +43,3 @@ public: static bool setFileNameDlg(TCHAR *nameBuff); static bool setFileNameDlgA(char *nameBuff); }; - -class Mutex -{ - friend class Lock; - -private: - void Acquire() { EnterCriticalSection (&_critSection); } - void Release() { LeaveCriticalSection (&_critSection); } - - CRITICAL_SECTION _critSection; - -public: - Mutex() { InitializeCriticalSection (&_critSection); } - ~Mutex() { DeleteCriticalSection (&_critSection); } -}; - -class Lock -{ -private: - Mutex &_mutex; - -public: - Lock (Mutex &mutex): _mutex(mutex) { _mutex.Acquire(); } - ~Lock () {_mutex.Release(); } -}; - -- cgit v1.2.3