diff --git a/iceoryx_posh/include/iceoryx_posh/internal/roudi/roudi.hpp b/iceoryx_posh/include/iceoryx_posh/internal/roudi/roudi.hpp index d9f97e01e1..2818b2151b 100644 --- a/iceoryx_posh/include/iceoryx_posh/internal/roudi/roudi.hpp +++ b/iceoryx_posh/include/iceoryx_posh/internal/roudi/roudi.hpp @@ -133,7 +133,7 @@ class RouDi std::thread m_monitoringAndDiscoveryThread; std::thread m_handleRuntimeMessageThread; #ifdef USE_SYSTEMD - std::thread listen_thread_watchdog; // 8 + std::thread m_listen_thread_watchdog; // 8 #endif protected: diff --git a/iceoryx_posh/source/roudi/roudi.cpp b/iceoryx_posh/source/roudi/roudi.cpp index 2dc46c1958..1a4fc117e3 100644 --- a/iceoryx_posh/source/roudi/roudi.cpp +++ b/iceoryx_posh/source/roudi/roudi.cpp @@ -167,8 +167,8 @@ void RouDi::shutdown() noexcept * the 'listen_thread_watchdog' has finished, hence ensuring a * proper termination of the entire application. */ - if (listen_thread_watchdog.joinable()) { - listen_thread_watchdog.join(); + if (m_listen_thread_watchdog.joinable()) { + m_listen_thread_watchdog.join(); } #endif @@ -274,7 +274,7 @@ void RouDi::processRuntimeMessages(runtime::IpcInterfaceCreator&& roudiIpcInterf if (invocation_id != nullptr) { IOX_LOG(WARN, "Run APP in unit(systemd)"); - listen_thread_watchdog = std::thread([this] { + m_listen_thread_watchdog = std::thread([this] { if (auto wdres = sd_notify(0, "READY=1") < 0) { std::array buf{}; @@ -297,7 +297,7 @@ void RouDi::processRuntimeMessages(runtime::IpcInterfaceCreator&& roudiIpcInterf std::this_thread::sleep_for(std::chrono::seconds(1)); } }); - if (pthread_setname_np(listen_thread_watchdog.native_handle(), "watchdog") != 0) + if (pthread_setname_np(m_listen_thread_watchdog.native_handle(), "watchdog") != 0) { std::array buf{}; strerror_r(errno, buf.data(), buf.size());