diff options
Diffstat (limited to 'modules/mod_qt/mux_qt.h')
-rw-r--r-- | modules/mod_qt/mux_qt.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/mod_qt/mux_qt.h b/modules/mod_qt/mux_qt.h new file mode 100644 index 000000000..1535b3d36 --- /dev/null +++ b/modules/mod_qt/mux_qt.h @@ -0,0 +1,31 @@ +/************************************************* +* Qt Thread Mutex Header File * +* (C) 1999-2006 The Botan Project * +*************************************************/ + +#ifndef BOTAN_EXT_MUTEX_QT_H__ +#define BOTAN_EXT_MUTEX_QT_H__ + +#include <botan/mutex.h> + +namespace Botan { + +/************************************************* +* Qt Mutex * +*************************************************/ +class Qt_Mutex : public Mutex + { + public: + void lock(); + void unlock(); + Mutex* clone() const { return new Qt_Mutex; } + + Qt_Mutex(); + ~Qt_Mutex(); + private: + struct mutex_wrapper* mutex; + }; + +} + +#endif |