diff options
author | Aleksi Lindeman <dec05eba@protonmail.com> | 2018-11-01 07:15:28 +0100 |
---|---|---|
committer | Aleksi Lindeman <dec05eba@protonmail.com> | 2018-11-01 07:15:28 +0100 |
commit | 88149764207c7719b6a979c5eb4dea3269bdd3e5 (patch) | |
tree | 94a92edbdbc6c502d7ec0755f7f6a0555ee93800 /include | |
parent | e2eb4f72050a297668850deed91cc88860b6ad45 (diff) |
Make operation callback funcs synchronous
Diffstat (limited to 'include')
-rw-r--r-- | include/odhtdb/DatabaseStorage.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/odhtdb/DatabaseStorage.hpp b/include/odhtdb/DatabaseStorage.hpp index b0c081e..8d559cd 100644 --- a/include/odhtdb/DatabaseStorage.hpp +++ b/include/odhtdb/DatabaseStorage.hpp @@ -19,6 +19,7 @@ #include <sibs/SafeDeserializer.hpp> #include <functional> #include <sibs/DirectConnection.hpp> +#include <mutex> class sqlite3; class sqlite3_stmt; @@ -201,5 +202,6 @@ namespace odhtdb u8 passwordSalt[PASSWORD_SALT_LEN]; std::vector<std::shared_ptr<sibs::DirectConnectionPeer>> remotePeers; + std::recursive_mutex databaseOperationCallbackMutex; }; } |