From 68d3d539ad7752dc80c20c1a2ade909b1a4c4a6e Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 29 Sep 2008 00:15:14 +0000 Subject: Move what is left of the uncategorized library to 'core'. There is still a lot of public key stuff in here that needs to be extracted however, and probably 2-3 other modules worth of stuff to split off (engines, etc) --- include/mutex.h | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) delete mode 100644 include/mutex.h (limited to 'include/mutex.h') 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 - -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 -- cgit v1.2.3