]> git.neil.brown.name Git - edlib.git/commit
libevent: split event_list
authorNeilBrown <neil@brown.name>
Thu, 8 Jun 2023 23:21:00 +0000 (09:21 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 05:40:21 +0000 (15:40 +1000)
commit81d9a6f6d02fff586f3e7e8cc2b1f5fe3b7b63ca
treeb200a8bd191cde3211eb9cae0b2e7a428f53da95
parent042f87c6e3e5c615be3a947c0ab612a0a187677f
libevent: split event_list

Rather than keeping poll events on the same list as events handled by
libevent, split the list in two.
This means we don't need POLL_FD to identify the poll events.
That, combined with the use of event_get_fd() means we don't need to
store the fd in the event struct.  Just the 'num' is sufficient.

Signed-off-by: NeilBrown <neil@brown.name>
lib-libevent.c