version 0.3.29
[fms.git] / include / db / sqlite3db / sqlite3statement.h
index d245d49..e57fbe5 100644 (file)
@@ -3,6 +3,8 @@
 \r
 #include "sqlite3db.h"\r
 \r
+#include <Poco/Mutex.h>\r
+\r
 #include <vector>\r
 #include <map>\r
 \r
@@ -57,6 +59,7 @@ private:
        long m_lastinsertrowid;\r
 \r
        static std::map<sqlite3_stmt *, long> m_statementcount;\r
+       static Poco::FastMutex m_mutex;                 // protect all access to m_statementcount\r
 \r
 };     //class\r
 \r