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

Method trigger_error

implementation/endpoints/src/local_endpoint.cpp:585–593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585void local_endpoint::trigger_error() {
586 // post to uphold the interface contract of the local_endpoint:
587 // No public API call will lead to a callback invocation
588 boost::asio::post(io_, [weak_self = weak_from_this()] {
589 if (auto self = weak_self.lock(); self) {
590 self->escalate();
591 }
592 });
593}
594
595void local_endpoint::register_cleanup_handler(const cleanup_handler_t& _handler) {
596 std::scoped_lock const lock{mutex_};

Calls 2

escalateMethod · 0.95
lockMethod · 0.80

Tested by

no test coverage detected