Quantcast
Channel: The Old New Thing
Viewing all articles
Browse latest Browse all 24428

re: Various ways of performing an operation asynchronously after a delay

$
0
0

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]

Viewing all articles
Browse latest Browse all 24428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>