diff --git a/include/proto/task.h b/include/proto/task.h index ef296f6e9..760b368b5 100644 --- a/include/proto/task.h +++ b/include/proto/task.h @@ -462,6 +462,13 @@ static inline void notification_wake(struct list *wake) } } +/* This function returns true is some notification are pending + */ +static inline int notification_registered(struct list *wake) +{ + return !LIST_ISEMPTY(wake); +} + /* * This does 3 things : * - wake up all expired tasks