/* * Qt Thread Mutex * (C) 2004-2007 Justin Karneges * 2004-2007 Jack Lloyd * * Distributed under the terms of the Botan license */ #include #include #if !defined(QT_THREAD_SUPPORT) #error Your version of Qt does not support threads or mutexes #endif namespace Botan { /* * Qt Mutex Factory */ Mutex* Qt_Mutex_Factory::make() { class Qt_Mutex : public Mutex { public: void lock() { mutex.lock(); } void unlock() { mutex.unlock(); } private: QMutex mutex; }; return new Qt_Mutex(); } }