mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-21 21:03:29 +02:00
MINOR: poller: centralize poll return handling
When returning from the polling syscall, all pollers have a certain dance to follow, made of wall clock updates, thread harmless updates, idle time management and sleeping mask updates. Let's have a centralized function to deal with all of this boring stuff: fd_leaving_poll(), and make all the pollers use it.
This commit is contained in:
@@ -79,6 +79,7 @@ ssize_t fd_write_frag_line(int fd, size_t maxlen, const struct ist pfx[], size_t
|
||||
void my_closefrom(int start);
|
||||
|
||||
int compute_poll_timeout(int next);
|
||||
void fd_leaving_poll(int wait_time, int status);
|
||||
|
||||
/* disable the specified poller */
|
||||
void disable_poller(const char *poller_name);
|
||||
|
||||
Reference in New Issue
Block a user