X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread.hpp;h=0c0740926ead3657ec01524e9834967cda7f957b;hb=e665dfbce25215d5ec77ff03a279c7163b337db1;hp=3444af9c041c24e5570390764bd23a46fd7eb20b;hpb=c9e313bc594f40a86eed237dce222c0fc99c957f;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/notification-thread.hpp b/src/bin/lttng-sessiond/notification-thread.hpp index 3444af9c0..0c0740926 100644 --- a/src/bin/lttng-sessiond/notification-thread.hpp +++ b/src/bin/lttng-sessiond/notification-thread.hpp @@ -21,7 +21,7 @@ #include #include -typedef uint64_t notification_client_id; +using notification_client_id = uint64_t; /* * The notification thread holds no ownership of the tracer event source pipe @@ -63,7 +63,7 @@ struct notification_thread_handle { * has been enqueued. */ struct { - struct lttng_pipe *event_pipe; + int event_fd; struct cds_list_head list; pthread_mutex_t lock; } cmd_queue; @@ -157,13 +157,15 @@ struct notification_thread_handle { * The thread reacts to the following internal events: * 1) creation of a tracing channel, * 2) destruction of a tracing channel, - * 3) registration of a trigger, - * 4) unregistration of a trigger, - * 5) reception of a channel monitor sample from the consumer daemon, - * 6) Session rotation ongoing, - * 7) Session rotation completed, - * 8) registration of a tracer event source, - * 9) unregistration of a tracer event source, + * 3) creation of a tracing session, + * 4) destruction of a tracing session, + * 5) registration of a trigger, + * 6) unregistration of a trigger, + * 7) reception of a channel monitor sample from the consumer daemon, + * 8) Session rotation ongoing, + * 9) Session rotation completed, + * 10) registration of a tracer event source, + * 11) unregistration of a tracer event source, * * Events specific to notification-emitting triggers: * 9) connection of a notification client,