summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/LightMutex.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-04-30 06:00:43 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-04-30 06:00:43 +0000
commite08a7cc8649d735a166879a3c1cf0b1642c651d1 (patch)
tree1916876b0586ea5bf1c00b22e59e274708e3b61d /plugins/Quotes/src/LightMutex.h
parent481296bc540cdbdd0efef87ddaa173c96619edc3 (diff)
minus critical section
git-svn-id: http://svn.miranda-ng.org/main/trunk@13268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/LightMutex.h')
-rw-r--r--plugins/Quotes/src/LightMutex.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins/Quotes/src/LightMutex.h b/plugins/Quotes/src/LightMutex.h
deleted file mode 100644
index e8c7363ba1..0000000000
--- a/plugins/Quotes/src/LightMutex.h
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef __a33da2bb_d4fe4aa7_aaf5_f9f8c3156ce6_LightMutex_h__
-#define __a33da2bb_d4fe4aa7_aaf5_f9f8c3156ce6_LightMutex_h__
-
-class CLightMutex
-{
-public:
- CLightMutex();
- ~CLightMutex();
-
- void Lock();
- void Unlock();
-
-private:
- CRITICAL_SECTION m_cs;
-};
-
-template<class TObject> class CGuard
-{
-public:
- CGuard(TObject& obj) : m_obj(obj)
- {
- m_obj.Lock();
- }
-
- ~CGuard()
- {
- m_obj.Unlock();
- }
-
-private:
- TObject& m_obj;
-};
-
-#endif //__a33da2bb_d4fe4aa7_aaf5_f9f8c3156ce6_LightMutex_h__