Skip to content

Commit 542759e

Browse files
iox-eclipse-iceoryx#2330 Add comment for func
1 parent 8eafb15 commit 542759e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

iceoryx_posh/source/roudi/roudi.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ void RouDi::shutdown() noexcept
161161
// Postpone the IpcChannelThread in order to receive TERMINATION
162162
m_runHandleRuntimeMessageThread = false;
163163

164+
/*
165+
* This is necessary to prevent the main thread from exiting before
166+
* the 'listen_thread_watchdog' has finished, hence ensuring a
167+
* proper termination of the entire application.
168+
*/
164169
if (listen_thread_watchdog.joinable()) {
165170
listen_thread_watchdog.join();
166171
}
@@ -258,6 +263,10 @@ void RouDi::processRuntimeMessages(runtime::IpcInterfaceCreator&& roudiIpcInterf
258263
IOX_LOG(INFO, "RouDi is ready for clients");
259264
fflush(stdout); // explicitly flush 'stdout' for 'launch_testing'
260265

266+
/*
267+
* We get information about how they are running. If as a unit, then we launch
268+
* watchdog and send a notification about the launch, otherwise we do nothing
269+
*/
261270
const char* invocation_id = std::getenv("INVOCATION_ID");
262271
if (invocation_id != nullptr)
263272
{

0 commit comments

Comments
 (0)