aboutsummaryrefslogtreecommitdiffstats
path: root/common/loop.c
Commit message (Collapse)AuthorAge
* common/loop: check return of reallocLibravatar Antonin Décimo2020-07-30
|
* Replace wlr_log with sway_logLibravatar M Stoeckl2019-01-21
| | | | | | | | | | | | | This commit mostly duplicates the wlr_log functions, although with a sway_* prefix. (This is very similar to PR #2009.) However, the logging function no longer needs to be replaceable, so sway_log_init's second argument is used to set the exit callback for sway_abort. wlr_log_init is still invoked in sway/main.c This commit makes it easier to remove the wlroots dependency for the helper programs swaymsg, swaybg, swaybar, and swaynag.
* list.c: rename free_flat_list to list_free_items_and_destroyLibravatar Ian Fan2018-12-09
|
* list.c: Remove list_foreachLibravatar Ian Fan2018-12-09
| | | | | 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.
* Increase _POSIX_C_SOURCE to 200112LLibravatar sghctoma2018-10-17
| | | | | CLOCK_MONOTONIC appeared in IEEE Std. 1003.1-200x, it was not part of POSIX.1b (the 1993 version), and FreeBSD treats it accordingly.
* common/loop.c: add _POSIX_C_SOURCE for clock_gettime and CLOCK_MONOTONICLibravatar Cole Mickens2018-10-15
|
* Event loop: Fix memmove and remove extraneous declarationLibravatar Ryan Dwyer2018-10-15
|
* Event loop: Free fds and fix race conditionLibravatar Ryan Dwyer2018-10-15
|
* Remove timerfd from loop implementationLibravatar Ryan Dwyer2018-10-15
| | | | | 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.
* swaylock: Remove indicator after 3 secondsLibravatar Ryan Dwyer2018-10-15
|
* Move swaybar's event loop to common directory and refactorLibravatar Ryan Dwyer2018-10-15
* 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.