diff options
author | George Hazan <ghazan@miranda.im> | 2018-01-04 21:02:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-01-04 21:02:56 +0300 |
commit | 1b89cbba1f3bc00ea24a8414b2e670c582ac5fc4 (patch) | |
tree | 76ac43351cbbdbece75774d6f7bbf1e89b6cdca8 /protocols/FacebookRM/src/stdafx.h | |
parent | 5b32a855e518f67589fd49837795a605a19badce (diff) |
Facebook: switch to mir_cs instead of custom lock
Diffstat (limited to 'protocols/FacebookRM/src/stdafx.h')
-rw-r--r-- | protocols/FacebookRM/src/stdafx.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/protocols/FacebookRM/src/stdafx.h b/protocols/FacebookRM/src/stdafx.h index 83f39e24e6..83efa47cf7 100644 --- a/protocols/FacebookRM/src/stdafx.h +++ b/protocols/FacebookRM/src/stdafx.h @@ -83,28 +83,6 @@ extern HINSTANCE g_hInstance; extern std::string g_strUserAgent;
extern DWORD g_mirandaVersion;
-class ScopedLock
-{
-public:
- ScopedLock(HANDLE h, int t = INFINITE) : handle_(h), timeout_(t)
- {
- WaitForSingleObject(handle_,timeout_);
- }
- ~ScopedLock()
- {
- if(handle_)
- ReleaseMutex(handle_);
- }
- void Unlock()
- {
- ReleaseMutex(handle_);
- handle_ = 0;
- }
-private:
- HANDLE handle_;
- int timeout_;
-};
-
template <typename T>
__inline static void FreeList(const LIST<T> &lst)
{
|