fesa-core
4.2.0
|
#include <SettingFieldsReadGuard.h>
Inherits noncopyable.
RAII helper to safely read the current RT buffer of BufferSynchronizer. The reading of setting fields in an event source should be as quick as possible, and this object should be destroyed as soon as possible, e.g. by putting it in a short scope. See this example:
{ SettingFieldsReadGuard readGuard; mySetting = device->settingField.get(&context); myOtherSetting = device->otherSettingField.get(&context); }