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

Method add_client

implementation/service_discovery/src/subscription.cpp:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool subscription::add_client(const client_t _client) {
77 std::scoped_lock its_lock(clients_mutex_);
78 auto find_client = clients_.find(_client);
79 if (find_client != clients_.end())
80 return false;
81
82 clients_[_client] = subscription_state_e::ST_UNKNOWN;
83 return true;
84}
85
86bool subscription::remove_client(const client_t _client) {
87 std::scoped_lock its_lock(clients_mutex_);

Callers 2

subscribeMethod · 0.45
unsubscribeMethod · 0.45

Calls 1

endMethod · 0.80

Tested by

no test coverage detected