diff options
| author | practicalswift <[email protected]> | 2018-08-29 22:33:33 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-08-29 22:33:33 +0200 |
| commit | d58dc9f94365ba3f993594bab293915d79dbe117 (patch) | |
| tree | 2b2aa8c2085fc7f7b6a1fe89a6cf89e4df4e837d /src/util.h | |
| parent | Add missing locks (cs_args) (diff) | |
| download | discoin-d58dc9f94365ba3f993594bab293915d79dbe117.tar.xz discoin-d58dc9f94365ba3f993594bab293915d79dbe117.zip | |
Add lock annotations (cs_args)
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/util.h b/src/util.h index e27e73089..7bf9fdbe1 100644 --- a/src/util.h +++ b/src/util.h @@ -142,11 +142,11 @@ protected: }; mutable CCriticalSection cs_args; - std::map<std::string, std::vector<std::string>> m_override_args; - std::map<std::string, std::vector<std::string>> m_config_args; - std::string m_network; - std::set<std::string> m_network_only_args; - std::map<OptionsCategory, std::map<std::string, Arg>> m_available_args; + std::map<std::string, std::vector<std::string>> m_override_args GUARDED_BY(cs_args); + std::map<std::string, std::vector<std::string>> m_config_args GUARDED_BY(cs_args); + std::string m_network GUARDED_BY(cs_args); + std::set<std::string> m_network_only_args GUARDED_BY(cs_args); + std::map<OptionsCategory, std::map<std::string, Arg>> m_available_args GUARDED_BY(cs_args); bool ReadConfigStream(std::istream& stream, std::string& error, bool ignore_invalid_keys = false); |