aboutsummaryrefslogtreecommitdiffstats
path: root/include/mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mutex.h')
-rw-r--r--include/mutex.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/include/mutex.h b/include/mutex.h
deleted file mode 100644
index e30b48eb0..000000000
--- a/include/mutex.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*************************************************
-* Mutex Header File *
-* (C) 1999-2007 Jack Lloyd *
-*************************************************/
-
-#ifndef BOTAN_MUTEX_H__
-#define BOTAN_MUTEX_H__
-
-#include <botan/exceptn.h>
-
-namespace Botan {
-
-/*************************************************
-* Mutex Base Class *
-*************************************************/
-class BOTAN_DLL Mutex
- {
- public:
- virtual void lock() = 0;
- virtual void unlock() = 0;
- virtual ~Mutex() {}
- };
-
-/*************************************************
-* Mutex Factory *
-*************************************************/
-class BOTAN_DLL Mutex_Factory
- {
- public:
- virtual Mutex* make() = 0;
- virtual ~Mutex_Factory() {}
- };
-
-/*************************************************
-* Mutex Holding Class *
-*************************************************/
-class BOTAN_DLL Mutex_Holder
- {
- public:
- Mutex_Holder(Mutex* m) : mux(m)
- {
- if(!mux)
- throw Invalid_Argument("Mutex_Holder: Argument was NULL");
- mux->lock();
- }
-
- ~Mutex_Holder() { mux->unlock(); }
- private:
- Mutex* mux;
- };
-
-}
-
-#endif