Good point, done. Works fine but needs the mentioned file descriptors. Dang, looks like I'm going to have to resort to chosing a resolution and polling after all, I was hoping for something that only wakes up when needed.
I could do that with one timer that triggers another, but I have no way of canceling it in the case of adding a task that is sooner than all others. Thanks for the input!
