template<typename SettingsClass>
class makVrv::DtReadSettingsLock< SettingsClass >
a read settings lock on a setting object. The object can only get read access aka const functions.
- Warning
- DO NOT pass lock objects around.
-
DO NOT keep lock objects as members.
-
DO NOT store lock objects as pointers.
-
Minimize use multiple locks to the same object at the same time.
-
DO NOT use write locks to an object with a read lock, DEADLOCKS!
Usage
temp for reading
bool value(false);
{
DtReadSettingsLock<DtTestSettings> readTest(mySharedSettingsManager);
value = readTest->getValue();
}