fesa-core  4.3.1
fesa::SettingFieldsReadGuard Class Reference

#include <SettingFieldsReadGuard.h>

Inherits noncopyable.

Detailed Description

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); }


The documentation for this class was generated from the following files: