diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-30 11:42:20 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-04-30 11:42:20 +0200 |
commit | 56921f9369509e7da5ad175614d14306db9374b6 (patch) | |
tree | 9925a1884d1c753fb5eeef4546bf6a1432373772 /src/wallet | |
parent | 219970524d8a41c6924f0b794de1250520607cfd (diff) |
wallet: Add Clang thread safety annotations for variables guarded by cs_db
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/db.cpp | 2 |
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) |