From 56921f9369509e7da5ad175614d14306db9374b6 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 30 Apr 2018 11:42:20 +0200 Subject: wallet: Add Clang thread safety annotations for variables guarded by cs_db --- src/wallet/db.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 g_dbenvs; //!< Map from directory name to open db environment. +std::map 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) -- cgit v1.2.3