/** * Copies the given basic and calculated info to the MapWindowBlackboard * and reads the Settings from the DeviceBlackboard. * @param nmea_info Basic info * @param derived_info Calculated info * @param settings_computer Computer settings to exchange * @param settings_map Map settings to exchange */ void MapWindow::ReadBlackboard(const MoreData &nmea_info, const DerivedInfo &derived_info, const ComputerSettings &settings_computer, const MapSettings &settings_map) { MapWindowBlackboard::ReadBlackboard(nmea_info, derived_info); ReadComputerSettings(settings_computer); ReadMapSettings(settings_map); }
void GlueMapWindow::SetMapSettings(const MapSettings &new_value) { AssertThreadOrUndefined(); #ifdef ENABLE_OPENGL ReadMapSettings(new_value); #else ScopeLock protect(next_mutex); next_settings_map = new_value; #endif }
void GlueMapWindow::ExchangeBlackboard() { /* copy device_blackboard to MapWindow */ device_blackboard->mutex.Lock(); ReadBlackboard(device_blackboard->Basic(), device_blackboard->Calculated()); device_blackboard->mutex.Unlock(); #ifndef ENABLE_OPENGL next_mutex.Lock(); ReadMapSettings(next_settings_map); ReadComputerSettings(next_settings_computer); next_mutex.Unlock(); #endif }
void GlueMapWindow::ExchangeBlackboard() { /* copy device_blackboard to MapWindow */ { const ScopeLock lock(device_blackboard->mutex); ReadBlackboard(device_blackboard->Basic(), device_blackboard->Calculated()); } #ifndef ENABLE_OPENGL { const ScopeLock lock(next_mutex); ReadMapSettings(next_settings_map); ReadComputerSettings(next_settings_computer); ReadUIState(next_ui_state); } #endif }