POSIX: use pthread-based timers
This is inefficient. It could be optimized a lot with epoll/timerfd on Linux and kqueue/kevent on BSD. Unfortunately, the POSIX timer API is impossible to use in a thread-safe manner, other than with signals.
Showing
Please register or sign in to comment