diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-11-01 07:15:28 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:46 +0200 |
commit | 71733d7acab4d94ec6f36a5d2fd25560837d8ff7 (patch) | |
tree | 8aa6df4b56e95ed95f46f2c9dddddfb5d5469c75 /include | |
parent | b21dcdf8e25884362277dddc5884f91620175896 (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; }; } |