]> git.kaiwu.me - haproxy.git/commit
MEDIUM: fd: remove the EV_FD_COND_* primitives
authorWilly Tarreau <wtarreau@exceliance.fr>
Mon, 30 Jul 2012 12:29:35 +0000 (14:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Sep 2012 19:53:10 +0000 (21:53 +0200)
commit3788e4c874afe31c4fd05176672110d8bb3bc9b0
tree5dbcb960b1a628970dd83461be1187bee544f770
parentc76ae33bfcf028217a38843d9b70fe48504d7bfb
MEDIUM: fd: remove the EV_FD_COND_* primitives

These primitives were initially introduced so that callers were able to
conditionally set/disable polling on a file descriptor and check in return
what the state was. It's been long since we last had an "if" on this, and
all pollers' functions were the same for cond_* and their systematic
counter parts, except that this required a check and a specific return
value that are not always necessary.

So let's simplify the FD API by removing this now unused distinction and
by making all specific functions return void.
include/proto/fd.h
include/types/fd.h
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c
src/ev_sepoll.c
src/sock_raw.c