version 0.3.29
[fms.git] / include / db / sqlite3db / sqlite3statement.h
index bdca9dc..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,8 +59,7 @@ private:
        long m_lastinsertrowid;\r
 \r
        static std::map<sqlite3_stmt *, long> m_statementcount;\r
-       //std::vector<char *> textptrs;\r
-       //std::vector<std::vector<char> > m_boundtext;\r
+       static Poco::FastMutex m_mutex;                 // protect all access to m_statementcount\r
 \r
 };     //class\r
 \r