diff options
| author | practicalswift <[email protected]> | 2018-04-29 20:14:27 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-04-29 20:14:27 +0200 |
| commit | 4bcd5bb87d5725a3e4f267d2c637177c311559f9 (patch) | |
| tree | 6425080bc6e82c9bfd64700bb572fdbc88e3e6cb /src/keystore.h | |
| parent | Merge #13077: Add compile time checking for all cs_KeyStore runtime locking a... (diff) | |
| download | discoin-4bcd5bb87d5725a3e4f267d2c637177c311559f9.tar.xz discoin-4bcd5bb87d5725a3e4f267d2c637177c311559f9.zip | |
Add locking annotations for variables guarded by cs_KeyStore
Diffstat (limited to 'src/keystore.h')
| -rw-r--r-- | src/keystore.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/keystore.h b/src/keystore.h index c56e4751d..62bc06dae 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -49,10 +49,10 @@ class CBasicKeyStore : public CKeyStore protected: mutable CCriticalSection cs_KeyStore; - KeyMap mapKeys; - WatchKeyMap mapWatchKeys; - ScriptMap mapScripts; - WatchOnlySet setWatchOnly; + KeyMap mapKeys GUARDED_BY(cs_KeyStore); + WatchKeyMap mapWatchKeys GUARDED_BY(cs_KeyStore); + ScriptMap mapScripts GUARDED_BY(cs_KeyStore); + WatchOnlySet setWatchOnly GUARDED_BY(cs_KeyStore); void ImplicitlyLearnRelatedKeyScripts(const CPubKey& pubkey) EXCLUSIVE_LOCKS_REQUIRED(cs_KeyStore); |