![]() |
Iguana 1.2.0
Implementation Guardian of Analysis Algorithms
|
#include <ConcurrentParam.h>
a parameter that is not thread safe; used when iguana::GlobalConcurrencyModel is "single"
Definition at line 66 of file ConcurrentParam.h.
Public Member Functions | |
| SingleThreadParam (std::string const &name) | |
| bool | HasKey (concurrent_key_t const key) const override |
| T const | Load (concurrent_key_t const key) const override |
| access a stored value | |
| bool | NeedsUpdate (T const &value, concurrent_key_t const key) const override |
| if either key is not found or value does not match the value at key, the caller likely needs to call Save | |
| void | Save (T const &value, concurrent_key_t const key) override |
| modify a value | |
| Public Member Functions inherited from iguana::ConcurrentParam< T > | |
| ConcurrentParam (std::string const &model, std::string const &name) | |
Additional Inherited Members | |
| Protected Attributes inherited from iguana::ConcurrentParam< T > | |
| std::shared_mutex | m_mutex |
| mutex for this ConcurrentParam | |
| std::string const | m_name |
| a name for this parameter | |

| iguana::SingleThreadParam< T >::SingleThreadParam | ( | std::string const & | name | ) |
| name | the name of this parameter |
|
overridevirtual |
|
overridevirtual |
access a stored value
| key | the access key |
Implements iguana::ConcurrentParam< T >.
|
overridevirtual |
if either key is not found or value does not match the value at key, the caller likely needs to call Save
| value | the expected value |
| key | the key for the expected value |
Implements iguana::ConcurrentParam< T >.
|
overridevirtual |