Add lock annotations (cs_args)
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user