diff options
| author | practicalswift <[email protected]> | 2018-04-30 11:42:20 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-04-30 11:42:20 +0200 |
| commit | 56921f9369509e7da5ad175614d14306db9374b6 (patch) | |
| tree | 9925a1884d1c753fb5eeef4546bf6a1432373772 /src | |
| parent | Merge #13109: [rpc] nit: fix typo for entry description string (diff) | |
| download | discoin-56921f9369509e7da5ad175614d14306db9374b6.tar.xz discoin-56921f9369509e7da5ad175614d14306db9374b6.zip | |
wallet: Add Clang thread safety annotations for variables guarded by cs_db
Diffstat (limited to 'src')
| -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 10a06e4b9..ae68e178b 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) |