Why do these APIs have threadpool in their name, why not just timerpool? Smells like a leaky abstraction.
Thanks for posting samples for both the new and old API, I know some of us tend to nag about it.
OT: I guess I should not vote on this post so you guys don't accuse me of being the childish down-voter :/
[Because they are "thread pool tasks triggered by time." As opposed to "thread pool tasks triggered by signals" or "thread pool tasks that don't need a trigger". You can manage them just like any other thread pool tasks. If they were a separate timer pool, then you couldn't (say) put a timer-triggered task and a plain task in the same task group. -Raymond]