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

Method add_ref

implementation/routing/src/event.cpp:398–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398void event::add_ref(client_t _client, bool _is_provided) {
399
400 std::scoped_lock its_lock(refs_mutex_);
401 auto its_client = refs_.find(_client);
402 if (its_client == refs_.end()) {
403 refs_[_client][_is_provided] = 1;
404 } else {
405 auto its_provided = its_client->second.find(_is_provided);
406 if (its_provided == its_client->second.end()) {
407 refs_[_client][_is_provided] = 1;
408 } else {
409 its_provided->second++;
410 }
411 }
412}
413
414void event::remove_ref(client_t _client, bool _is_provided) {
415

Callers 3

register_eventMethod · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected