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

Method set_payload_notify_pending

implementation/routing/src/event.cpp:195–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195bool event::set_payload_notify_pending(const std::shared_ptr<payload>& _payload) {
196
197 std::scoped_lock its_lock(mutex_);
198 if (is_provided_ && !is_set_) {
199
200 update_->set_payload(_payload);
201 set_payload_filled(true);
202
203 // Send pending initial events.
204 for (const auto& its_target : pending_) {
205 set_session();
206 dispatcher_.send_event_to(VSOMEIP_ROUTING_CLIENT, its_target, update_);
207 }
208 pending_.clear();
209
210 update_payload_unlocked();
211
212 return true;
213 }
214
215 return false;
216}
217
218void event::unset_payload(bool _force) {
219 std::scoped_lock its_lock(mutex_);

Callers 1

on_notificationMethod · 0.80

Calls 3

set_payloadMethod · 0.45
send_event_toMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected