aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/db.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-04-30 11:42:20 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-04-30 11:42:20 +0200
commit56921f9369509e7da5ad175614d14306db9374b6 (patch)
tree9925a1884d1c753fb5eeef4546bf6a1432373772 /src/wallet/db.cpp
parent219970524d8a41c6924f0b794de1250520607cfd (diff)
wallet: Add Clang thread safety annotations for variables guarded by cs_db
Diffstat (limited to 'src/wallet/db.cpp')
-rw-r--r--src/wallet/db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/db.cpp b/src/wallet/db.cpp
index 10a06e4b9a..ae68e178b5 100644
--- a/src/wallet/db.cpp
+++ b/src/wallet/db.cpp
@@ -53,7 +53,7 @@ void CheckUniqueFileid(const BerkeleyEnvironment& env, const std::string& filena
}
CCriticalSection cs_db;
-std::map<std::string, BerkeleyEnvironment> g_dbenvs; //!< Map from directory name to open db environment.
+std::map<std::string, BerkeleyEnvironment> g_dbenvs GUARDED_BY(cs_db); //!< Map from directory name to open db environment.
} // namespace
BerkeleyEnvironment* GetWalletEnv(const fs::path& wallet_path, std::string& database_filename)