diff options
author | lloyd <[email protected]> | 2010-05-19 14:06:59 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-05-19 14:06:59 +0000 |
commit | 2295ef9e8d97065ad2920f5039878728e52a144f (patch) | |
tree | 8776271409e706f5d2695d6ec05f8fbd3680e4ef /src/mutex/win32_crit_section/mux_win32.cpp | |
parent | 4cace3ee04ae9a20a57b1fa11447a1917f0f155d (diff) | |
parent | b724994a7385e4ddd2e4e0684383302271ea2bf9 (diff) |
propagate from branch 'net.randombit.botan' (head 66b216669d7ac91303378281d760236153955ae4)
to branch 'net.randombit.botan.c++0x' (head b911a76971563afcde85935a44a43248a3f5b4a6)
Diffstat (limited to 'src/mutex/win32_crit_section/mux_win32.cpp')
-rw-r--r-- | src/mutex/win32_crit_section/mux_win32.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/mutex/win32_crit_section/mux_win32.cpp b/src/mutex/win32_crit_section/mux_win32.cpp deleted file mode 100644 index fa6051798..000000000 --- a/src/mutex/win32_crit_section/mux_win32.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/* -* Win32 Mutex -* (C) 2006 Luca Piccarreta -* 2006-2007 Jack Lloyd -* -* Distributed under the terms of the Botan license -*/ - -#include <botan/internal/mux_win32.h> -#include <windows.h> - -namespace Botan { - -/* -* Win32 Mutex Factory -*/ -Mutex* Win32_Mutex_Factory::make() - { - class Win32_Mutex : public Mutex - { - public: - void lock() { EnterCriticalSection(&mutex); } - void unlock() { LeaveCriticalSection(&mutex); } - - Win32_Mutex() { InitializeCriticalSection(&mutex); } - ~Win32_Mutex() { DeleteCriticalSection(&mutex); } - private: - CRITICAL_SECTION mutex; - }; - - return new Win32_Mutex(); - } - -} |