Class MirrorManager::Options

Nested Relationships

This class is a nested type of Class MirrorManager.

Class Documentation

class Options

Options for the MirrorManager.

Public Functions

Options(std::mutex *update_mutex = nullptr, bool update_on_wakeup = true)

update_mutex A reference to a mutex that should be locked when performing an update. When set to a nullptr, no mutex will be locked.

Constructor

update_on_wakeup Specify if the mirror should perform an update whenever it gets woken up by the schedule.

std::mutex *update_mutex() const

Get a reference to the mutex that will be used when performing an update.

Options &update_mutex(std::mutex *mutex)

Set the mutex that should be used when performing an update.

bool update_on_wakeup() const

True if the mirror should be updated each time a MirrorWakeup message is received. The MirrorWakeup messages are sent out each time a change is introduced to the schedule database.

Options &update_on_wakeup(bool choice)

Toggle the choice to wakeup on an update.