From 162e60d66c78bd51aa44c691fe4f4e2f1deb990f Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 19 May 2012 14:24:27 +0000 Subject: added Quotes git-svn-id: http://svn.miranda-ng.org/main/trunk@76 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Quotes/LightMutex.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 plugins/Quotes/LightMutex.cpp (limited to 'plugins/Quotes/LightMutex.cpp') diff --git a/plugins/Quotes/LightMutex.cpp b/plugins/Quotes/LightMutex.cpp new file mode 100644 index 0000000000..8d14e8e7bb --- /dev/null +++ b/plugins/Quotes/LightMutex.cpp @@ -0,0 +1,22 @@ +#include "StdAfx.h" +#include "LightMutex.h" + +CLightMutex::CLightMutex() +{ + InitializeCriticalSection(&m_cs); +} + +CLightMutex::~CLightMutex() +{ + ::DeleteCriticalSection(&m_cs); +} + +void CLightMutex::Lock() +{ + ::EnterCriticalSection(&m_cs); +} + +void CLightMutex::Unlock() +{ + ::LeaveCriticalSection(&m_cs); +} -- cgit v1.2.3