mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Protect access to options container
This commit is contained in:
committed by
Dennis Klein
parent
479d6e0712
commit
db0500fb2d
@@ -226,7 +226,11 @@ class ProgOptions
|
||||
void PrintOptionsRaw() const;
|
||||
|
||||
/// @brief returns the property container
|
||||
const boost::program_options::variables_map& GetVarMap() const { return fVarMap; }
|
||||
const boost::program_options::variables_map& GetVarMap() const
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(fMtx);
|
||||
return fVarMap;
|
||||
}
|
||||
|
||||
/// @brief Read config property, return default-constructed object if key doesn't exist
|
||||
/// @param key
|
||||
|
Reference in New Issue
Block a user