projects
/
fms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.3.29
[fms.git]
/
include
/
db
/
sqlite3db
/
sqlite3statement.h
diff --git
a/include/db/sqlite3db/sqlite3statement.h
b/include/db/sqlite3db/sqlite3statement.h
index
d245d49
..
e57fbe5
100644
(file)
--- a/
include/db/sqlite3db/sqlite3statement.h
+++ b/
include/db/sqlite3db/sqlite3statement.h
@@
-3,6
+3,8
@@
\r
#include "sqlite3db.h"
\r
\r
\r
#include "sqlite3db.h"
\r
\r
+#include <Poco/Mutex.h>
\r
+
\r
#include <vector>
\r
#include <map>
\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
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
\r
}; //class
\r
\r