X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Fdb%2Fsqlite3db%2Fsqlite3db.h;h=470ba85f41dda839f7b603d72678da3101f9b8cf;hb=dec33c63afafabf83c3039e916725cac6faef9b3;hp=b41f3b8f29bcd54d25cfdba7bb3eec3669b83a28;hpb=9b22dd53fe62e312c1647310b7ec43aa127090af;p=fms.git diff --git a/include/db/sqlite3db/sqlite3db.h b/include/db/sqlite3db/sqlite3db.h index b41f3b8..470ba85 100644 --- a/include/db/sqlite3db/sqlite3db.h +++ b/include/db/sqlite3db/sqlite3db.h @@ -1,14 +1,11 @@ #ifndef _sqlite3db_ #define _sqlite3db_ -//#include -//#include +#include #include #include -#include "../../pthreadwrapper/mutex.h" #include "../sqlite3db.h" - -#include "../../pthreadwrapper/singleton.h" +#include "../../threadwrapper/singleton.h" #if SQLITE_VERSION_NUMBER<3005000 #error "Your version of SQLite is too old! 3.5.0 or later is required." @@ -17,7 +14,7 @@ namespace SQLite3DB { -class DB:public PThread::Singleton +class DB:public Singleton { public: DB(); @@ -41,7 +38,7 @@ public: sqlite3 *GetDB() { return m_db; } - PThread::Mutex m_mutex; // public so that recordset and statment can lock this mutex themselves + Poco::FastMutex m_mutex; // public so that recordset and statment can lock this mutex themselves private: void Initialize();