33 std::lock_guard<std::mutex> lock(m_mutex);
34 std::call_once(m_once, [&]() { m_val = val; });
42 std::lock_guard<std::mutex> lock(m_mutex);
49 std::once_flag m_once;
T const operator()()
get the value of the parameter
GlobalParam< T > & operator=(T const &val)
assign a new value to this parameter
Object(std::string_view name="", Logger::Level lev=Logger::DEFAULT_LEVEL)
General, top-level namespace for algorithms and infrastructure. For algorithms and bindings,...
GlobalParam< std::string > GlobalRcdbUrl
Path to the RCDB.
GlobalParam< std::string > GlobalConcurrencyModel
The concurrency model, for running certain algorithms in a thread-safe way.