| 48 | } |
| 49 | |
| 50 | void vsomeip_v3::auxiliary_context::stop() { |
| 51 | context_.stop(); |
| 52 | |
| 53 | try { |
| 54 | auto thread_id = thread_.get_id(); |
| 55 | if (std::this_thread::get_id() != thread_id && thread_.joinable()) { |
| 56 | thread_.join(); |
| 57 | VSOMEIP_INFO << "Joined thread m_auxiliary, id " << std::hex << thread_id; |
| 58 | } |
| 59 | } catch (...) { |
| 60 | // Ignore exception if thread already joined |
| 61 | } |
| 62 | } |