fesa-core  4.2.0
fesa::FieldSynchroManager Class Reference

Class that manages the synchronization of persistent fields. More...

#include <FieldSynchroManager.h>

Public Member Functions

void registerModifiedField (uint32_t index, uint32_t slot)
 
void abortModifiedFieldSynchronization ()
 
uint32_t commitModifiedFieldSynchronization ()
 

Detailed Description

Class that manages the synchronization of persistent fields.

Member Function Documentation

void fesa::FieldSynchroManager::abortModifiedFieldSynchronization ( )

Empties the list of modified field slots.

uint32_t fesa::FieldSynchroManager::commitModifiedFieldSynchronization ( )

IMPORTANT: Must never be called while holding a device lock (read or write). Doing so can create a deadlock. Commits the modifications registered with registerModifiedField(), then empties the list of modified field slots. The new values are ready to be copied to the real-time buffers.

Returns
number of real-time synchronizations done before this commit. The return value can be used to check the availability of the new values in the real-time part.
void fesa::FieldSynchroManager::registerModifiedField ( uint32_t  index,
uint32_t  slot 
)

Registers a field slot as modified.

Parameters
indexindex of the field to register as modified
slotslot of the field to register as modified

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