MCPcopy Create free account
hub / github.com/COVESA/vsomeip / offer_event

Method offer_event

implementation/runtime/src/application_impl.cpp:1226–1242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1224}
1225
1226void application_impl::offer_event(service_t _service, instance_t _instance, event_t _notifier, const std::set<eventgroup_t>& _eventgroups,
1227 event_type_e _type, std::chrono::milliseconds _cycle, bool _change_resets_cycle, bool _update_on_change,
1228 const epsilon_change_func_t& _epsilon_change_func, reliability_type_e _reliability) {
1229 if (routing_) {
1230
1231 if (_cycle == std::chrono::milliseconds::zero() && _change_resets_cycle == false && _update_on_change == true) {
1232
1233 configuration_->get_event_update_properties(_service, _instance, _notifier, _cycle, _change_resets_cycle, _update_on_change);
1234
1235 VSOMEIP_INFO_P << "Event [" << hex4(_service) << "." << hex4(_instance) << "." << hex4(_notifier)
1236 << "] uses configured cycle time " << _cycle.count() << "ms";
1237 }
1238
1239 routing_->register_event(client_, _service, _instance, _notifier, _eventgroups, _type, _reliability, _cycle, _change_resets_cycle,
1240 _update_on_change, _epsilon_change_func, true);
1241 }
1242}
1243
1244void application_impl::stop_offer_event(service_t _service, instance_t _instance, event_t _event) {
1245 if (routing_)

Callers 1

initMethod · 0.45

Calls 4

hex4Function · 0.85
countMethod · 0.80
register_eventMethod · 0.45

Tested by

no test coverage detected