Merge #13127: wallet: Add Clang thread safety annotations for variables guarded by cs_db

56921f9369 wallet: Add Clang thread safety annotations for variables guarded by cs_db (practicalswift)

Pull request description:

  Add Clang thread safety annotations for variables guarded by `cs_db`.

Tree-SHA512: d59723598e918143f36408b4f49d31138b5d8968ba191472f6a207a63af147627f21e48fd6cc1606dd901d8a58183271e65ea4346a380db3c09e404764a28063
This commit is contained in:
MarcoFalke 2018-05-14 09:56:44 -04:00
commit 19a3a9e8fb
No known key found for this signature in database
GPG key ID: D2EA4850E7528B25

View file

@ -53,7 +53,7 @@ void CheckUniqueFileid(const BerkeleyEnvironment& env, const std::string& filena
} }
CCriticalSection cs_db; 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 } // namespace
BerkeleyEnvironment* GetWalletEnv(const fs::path& wallet_path, std::string& database_filename) BerkeleyEnvironment* GetWalletEnv(const fs::path& wallet_path, std::string& database_filename)