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

Method unset_payload

implementation/routing/src/event.cpp:218–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void event::unset_payload(bool _force) {
219 std::scoped_lock its_lock(mutex_);
220 if (_force) {
221 set_payload_filled(false);
222 stop_cycle();
223 current_->set_payload(std::make_shared<payload_impl>());
224 } else {
225 if (is_provided_) {
226 set_payload_filled(false);
227 stop_cycle();
228 current_->set_payload(std::make_shared<payload_impl>());
229 }
230 }
231}
232
233void event::set_update_cycle(std::chrono::milliseconds& _cycle) {
234

Callers 12

release_serviceMethod · 0.80
del_routing_infoMethod · 0.80
expire_subscriptionsMethod · 0.80
on_unsubscribe_ackMethod · 0.80
register_eventMethod · 0.80
on_stop_offer_serviceMethod · 0.80

Calls 1

set_payloadMethod · 0.45

Tested by

no test coverage detected