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

Method stop

examples/subscribe-sample.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 void start() { app_->start(); }
52
53 void stop() {
54 app_->clear_all_handler();
55 app_->unsubscribe(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID, SAMPLE_EVENTGROUP_ID);
56 app_->release_event(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID, SAMPLE_EVENT_ID);
57 app_->release_service(SAMPLE_SERVICE_ID, SAMPLE_INSTANCE_ID);
58 app_->stop();
59 }
60
61 void on_state(vsomeip::state_type_e _state) {
62 if (_state == vsomeip::state_type_e::ST_REGISTERED) {

Callers 1

mainFunction · 0.45

Calls 4

clear_all_handlerMethod · 0.80
release_eventMethod · 0.80
unsubscribeMethod · 0.45
release_serviceMethod · 0.45

Tested by

no test coverage detected