aboutsummaryrefslogtreecommitdiffstats
path: root/src/mutex/win32_crit_section/mux_win32.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-07-15 13:33:51 +0000
committerlloyd <[email protected]>2009-07-15 13:33:51 +0000
commitb1fc3ff3fe19152eaf1adbdd9f503dfaf2b8a500 (patch)
tree05634e88229058a59c8ab0d84332f1baf148f4a5 /src/mutex/win32_crit_section/mux_win32.cpp
parent864b9c9e8b8f0b7e8f7e15dc1905c2d501a1498e (diff)
parentb438a3c6d08893ca77a1d18baef1b02e955eccf8 (diff)
propagate from branch 'net.randombit.botan' (head 5438defd358f82e876917a8bd6d735305ecb0a8e)
to branch 'net.randombit.botan.c++0x' (head cbdb2fd418557add29a536f7bdb6e78db16f725c)
Diffstat (limited to 'src/mutex/win32_crit_section/mux_win32.cpp')
-rw-r--r--src/mutex/win32_crit_section/mux_win32.cpp34
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 2a967892b..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/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();
- }
-
-}