Commit Graph

3 Commits

Author SHA1 Message Date
d0dd5f7a4a More minor bugfixes
- make pollcat_loop() work as expected with no structs linked, by
  - calling usleep() instead of poll()
  - refactoring delay calculation and reset into pollcat_time_value()
- simplify pollcat_timer_dispatch() in case of slow callbacks
  - deprecate pollcat_timer_dispatch_thresh
- revise tests/timer.c to support two new options:
  - -s to monitor stdin with pollcat_fd_add()
  - -w to use pollcat_loop() instead of handling main-loop separately
- make pollcat_dump() always present in header, since it's always compiled in
- add Makefile rules for installing tests, for easier running on cross-compiled targets
2025-09-18 13:28:27 -07:00
c7729ca9b6 Minor bugfixes after testing
- fix binary search args order
- fix missing pollcat_dump() if POLLCAT_DEBUG=0
- safety check on null fp if stderr/stdout closed
2022-07-25 13:28:16 -07:00
bbd4625d43 Initial commit of Pollcat library 2022-07-07 12:00:58 -07:00