aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mux_qt/mux_qt.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-05-18 19:01:03 +0000
committerlloyd <[email protected]>2006-05-18 19:01:03 +0000
commitc3ae40d21245315a5bfb913820c20d0d2896522c (patch)
tree7d4db3edb082cd1d0a17c97137dc27972dba9c4a /modules/mux_qt/mux_qt.h
parenta2c99d3270eb73ef2db5704fc54356c6b75096f8 (diff)
Rename mod_qt to mux_qt, as all (very minimal) non-mutex functionality
is going to be removed.
Diffstat (limited to 'modules/mux_qt/mux_qt.h')
-rw-r--r--modules/mux_qt/mux_qt.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/mux_qt/mux_qt.h b/modules/mux_qt/mux_qt.h
new file mode 100644
index 000000000..1535b3d36
--- /dev/null
+++ b/modules/mux_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