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

Method get_client_state

implementation/routing/src/remote_subscription.cpp:136–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136remote_subscription_state_e remote_subscription::get_client_state(const client_t _client) const {
137 std::scoped_lock its_lock(mutex_);
138 auto found_client = clients_.find(_client);
139 if (found_client != clients_.end()) {
140 return found_client->second.first;
141 }
142 return remote_subscription_state_e::SUBSCRIPTION_UNKNOWN;
143}
144
145void remote_subscription::set_client_state(const client_t _client, remote_subscription_state_e _state) {
146 std::scoped_lock its_lock(mutex_);

Callers 2

send_subscription_ackMethod · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected