X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=include%2Fdb%2Fsqlite3db%2Fsqlite3db.h;h=8c2ee3999295a0d414bdd5d01327a9612ab3a5d6;hb=221236a4d3aac4144529d418ce368db5c98facb0;hp=f0aac60bc9463b74e8a6cfdcdf4f1cc645f4f6f3;hpb=5f8a87e41beeda971d6a47a6c6b0555da00af978;p=fms.git diff --git a/include/db/sqlite3db/sqlite3db.h b/include/db/sqlite3db/sqlite3db.h index f0aac60..8c2ee39 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/singleton.h" -#include "../../pthreadwrapper/mutex.h" - #include "../sqlite3db.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,11 +14,11 @@ namespace SQLite3DB { -class DB:public PThread::Singleton +class DB:public Singleton { public: DB(); - DB(std::string filename); + DB(const std::string &filename); ~DB(); const bool Open(const std::string &filename); @@ -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();