X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotify-apps.cpp;h=1fff92d071ba01f1f70aac518493194c791485e0;hb=HEAD;hp=5d67a914f8ecbc6abefba99b8a6709bd33efd61c;hpb=28ab034a2c3582d07d3423d2d746731f87d3969f;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/notify-apps.cpp b/src/bin/lttng-sessiond/notify-apps.cpp index 5d67a914f..03ac5866c 100644 --- a/src/bin/lttng-sessiond/notify-apps.cpp +++ b/src/bin/lttng-sessiond/notify-apps.cpp @@ -18,6 +18,8 @@ #include #include +#include + namespace { struct thread_notifiers { struct lttng_pipe *quit_pipe; @@ -69,7 +71,7 @@ static void *thread_application_notification(void *data) health_code_update(); - while (1) { + while (true) { DBG3("[ust-thread] Manage notify polling"); /* Inifinite blocking call, waiting for transmission */ @@ -197,7 +199,7 @@ error_testpoint: health_unregister(the_health_sessiond); rcu_thread_offline(); rcu_unregister_thread(); - return NULL; + return nullptr; } static bool shutdown_application_notification_thread(void *data)