Remove timerfd from loop implementation

timerfd doesn't work on the BSDs, so this replaces it with a timespec
for the expiry and uses a poll timeout to check the timers when needed.
This commit is contained in:
Ryan Dwyer 2018-10-14 12:28:38 +10:00
parent f98f351a52
commit 6921fdc6d6
7 changed files with 128 additions and 65 deletions

View file

@ -69,7 +69,6 @@ struct swaybar {
struct status_line *status;
struct loop *eventloop;
struct loop_event *status_event;
int ipc_event_socketfd;
int ipc_socketfd;