X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdb%2Fsqlite3recordset.cpp;h=2c372231d7a80b1ec605e52bfc2c4f7c843c2564;hb=dec33c63afafabf83c3039e916725cac6faef9b3;hp=c85a49c1a7d6090e5afa3f7c11b6c46f73a3acf9;hpb=9b22dd53fe62e312c1647310b7ec43aa127090af;p=fms.git diff --git a/src/db/sqlite3recordset.cpp b/src/db/sqlite3recordset.cpp index c85a49c..2c37223 100644 --- a/src/db/sqlite3recordset.cpp +++ b/src/db/sqlite3recordset.cpp @@ -90,8 +90,7 @@ void Recordset::Open(const std::string &sql, DB *db) Free(); m_currentrow=0; - //ZThread::Guard g(DB::instance()->m_mutex); - PThread::Guard g(DB::Instance()->m_mutex); + Poco::ScopedLock g(DB::Instance()->m_mutex); if(sqlite3_get_table(db->GetDB(),sql.c_str(),&m_rs,&m_rows,&m_cols,NULL)==SQLITE_OK) { }