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

Method registered

implementation/routing/src/routing_client_state_machine.cpp:62–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62[[nodiscard]] bool routing_client_state_machine::registered(client_t _client) {
63 std::scoped_lock lock{mtx_};
64 if (state_ != routing_client_state_e::ST_REGISTERING) {
65 VSOMEIP_WARNING_P << "Unexpected state: " << state_;
66 return false;
67 }
68
69 VSOMEIP_INFO_P << "Former client id: 0x" << hex4(former_client_) << ", new 0x" << hex4(_client);
70 former_client_ = client_;
71 client_ = _client;
72
73 change_state_unlocked(routing_client_state_e::ST_REGISTERED);
74 return true;
75}
76
77void routing_client_state_machine::deregistered() {
78 std::unique_lock lock{mtx_};

Callers 2

TEST_FFunction · 0.80
register_applicationMethod · 0.80

Calls 1

hex4Function · 0.85

Tested by

no test coverage detected