|
by luisabreu via LA.NET [EN] on 6/2/2009 10:29:55 PM
In this post, we’re going to keep looking on how we can reuse the thread pool’s threads for executing specific tasks. This post is all about registered waits. A registered wait allows us to specify a callback that will be invoked when a predefined kernel object is signaled. In .NET, we register a wait callback through one of the several static overloads of the RegisterWaitForSingleObject method. Here’s one of those overloads: public static RegisteredWaitHandle RegisterWaitForSingleObject(
... [ read more ]
|