4 ms·
A pure sleep is exactly desirable when poll is coupled to a userspace timer queue. In this case you want to block until the next timer expires or the next io ev
by gpderetta 10y ago
A pure sleep is exactly desirable when poll is coupled to a userspace timer queue. In this case you want to block until the next timer expires or the next io event, whatever come first. It is a fundamental building block of many event based applications.
- Matthias247 10y agoThat's totally right, forgot about that one. Probably used timerfd too much in the past :)