Index: src/shared/Utils.h |
=================================================================== |
--- a/src/shared/Utils.h |
+++ b/src/shared/Utils.h |
@@ -25,43 +25,4 @@ |
return trimmed; |
} |
-namespace |
-{ |
- class CriticalSection |
- { |
- public: |
- CriticalSection() |
- { |
- InitializeCriticalSection(§ion); |
- } |
- |
- ~CriticalSection() |
- { |
- DeleteCriticalSection(§ion); |
- } |
- |
- class Lock |
- { |
- public: |
- Lock(CriticalSection& cs) |
- : section(&cs.section) |
- { |
- EnterCriticalSection(section); |
- } |
- |
- ~Lock() |
- { |
- LeaveCriticalSection(section); |
- } |
- private: |
- LPCRITICAL_SECTION section; |
- Lock(const Lock&); |
- Lock& operator=(const Lock&); |
- }; |
- private: |
- CRITICAL_SECTION section; |
- CriticalSection(const CriticalSection&); |
- CriticalSection& operator=(const CriticalSection&); |
- }; |
-} |
#endif // UTILS_H |