Whilst I’m ranting about the little things…
You still can’t create named versions of the .Net
AutoResetEvent, even in .Net 2.0. Wasn’t everything going to be fixed in Whidbey?
I guess the fact that the P/Invoke route isn’t recommended is the reason for the dearth of nicely packaged up solutions to this problem; surely anyone who needs this functionality would write an object that wraps it up nicely rather than doing it “long hand” like this? I particularly like the way that example uses the hole in the encapsulation of
ManualResetEvent to replace the event handle so that he can use
WaitOne() on it…