mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 08:51:28 -04:00
MINOR: task/notification: Is notifications registered ?
This function returns true is some notifications are registered. This function is usefull for the following patch BUG/MEDIUM: lua/socket: Sheduling error on write: may dead-lock It should be backported in 1.6, 1.7 and 1.8
This commit is contained in:
parent
3a47e5e25c
commit
9d5422a4b7
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue