Ian Fan
98c1e19466
list.c: rename free_flat_list to list_free_items_and_destroy
2018-12-09 01:15:38 +00:00
Ian Fan
19e831ed3d
list.c: Remove list_foreach
...
Most occurrences have been replaced by `free_flat_list` which has been
moved from stringop.c to list.c. The rest have been replaced by for loops.
2018-12-09 00:37:50 +00:00
sghctoma
2694fd72b6
Increase _POSIX_C_SOURCE to 200112L
...
CLOCK_MONOTONIC appeared in IEEE Std. 1003.1-200x, it was not part of
POSIX.1b (the 1993 version), and FreeBSD treats it accordingly.
2018-10-17 11:09:58 +02:00
Cole Mickens
a9a9df75ec
common/loop.c: add _POSIX_C_SOURCE for clock_gettime and CLOCK_MONOTONIC
2018-10-15 13:42:24 -07:00
Ryan Dwyer
c6f153d8f9
Event loop: Fix memmove and remove extraneous declaration
2018-10-15 00:26:27 +10:00
Ryan Dwyer
893f61d03a
Event loop: Free fds and fix race condition
2018-10-15 00:26:27 +10:00
Ryan Dwyer
6921fdc6d6
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.
2018-10-15 00:26:27 +10:00
Ryan Dwyer
c242712262
swaylock: Remove indicator after 3 seconds
2018-10-15 00:26:27 +10:00
Ryan Dwyer
4056c09e13
Move swaybar's event loop to common directory and refactor
...
* The loop functions are now prefixed with `loop_`.
* It is now easy to add timers to the loop.
* Timers are implemented using pollfd and timerfd, rather than manually
checking them when any other event happens to arrive.
2018-10-15 00:26:27 +10:00