diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-08-29 22:33:33 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-08-29 22:33:33 +0200 |
commit | d58dc9f94365ba3f993594bab293915d79dbe117 (patch) | |
tree | 2b2aa8c2085fc7f7b6a1fe89a6cf89e4df4e837d /src/util.cpp | |
parent | db5e9d3c88349f7e3b56f50f2e2862997e308fd9 (diff) | |
download | bitcoin-d58dc9f94365ba3f993594bab293915d79dbe117.tar.xz |
Add lock annotations (cs_args)
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp index ef5ea32ed1..e58ff042e8 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -216,7 +216,7 @@ public: /** Determine whether to use config settings in the default section, * See also comments around ArgsManager::ArgsManager() below. */ - static inline bool UseDefaultSection(const ArgsManager& am, const std::string& arg) + static inline bool UseDefaultSection(const ArgsManager& am, const std::string& arg) EXCLUSIVE_LOCKS_REQUIRED(am.cs_args) { return (am.m_network == CBaseChainParams::MAIN || am.m_network_only_args.count(arg) == 0); } @@ -295,7 +295,7 @@ public: /* Special test for -testnet and -regtest args, because we * don't want to be confused by craziness like "[regtest] testnet=1" */ - static inline bool GetNetBoolArg(const ArgsManager &am, const std::string& net_arg) + static inline bool GetNetBoolArg(const ArgsManager &am, const std::string& net_arg) EXCLUSIVE_LOCKS_REQUIRED(am.cs_args) { std::pair<bool,std::string> found_result(false,std::string()); found_result = GetArgHelper(am.m_override_args, net_arg, true); |