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

Method start

implementation/endpoints/src/endpoint_manager_impl.cpp:55–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53endpoint_manager_impl::~endpoint_manager_impl() { }
54
55void endpoint_manager_impl::start() {
56 options_thread_ = std::thread([this]() {
57#if defined(__linux__) || defined(__QNX__)
58 pthread_setname_np(pthread_self(), "m_multicast");
59#endif
60 utility::set_thread_niceness(configuration_->get_io_thread_nice_level(router_->get_name()));
61
62 VSOMEIP_INFO << "Started thread m_multicast " << std::hex << std::this_thread::get_id()
63#if defined(__linux__)
64 << ", tid " << std::dec << static_cast<int>(syscall(SYS_gettid))
65#endif
66 ;
67 process_multicast_options();
68 VSOMEIP_INFO << "Stopped thread m_multicast " << std::hex << std::this_thread::get_id()
69#if defined(__linux__)
70 << ", tid " << std::dec << static_cast<int>(syscall(SYS_gettid))
71#endif
72 ;
73 });
74
75 auxiliary_context_.start();
76}
77
78void endpoint_manager_impl::stop() {
79 VSOMEIP_INFO_P << "called";

Calls 3

get_idFunction · 0.85
get_nameMethod · 0.45

Tested by

no test coverage detected