
Wednesday, December 12, 2007
Ian pointed out that there was a race condition in the UniversalAsyncResult that I posted a few days ago. I have amended the original post rather than repost the code.
The changes are to make the complete flag and the waithandle field volatile and to check the complete flag after allocating the waithandle in case Complete was called while the waithandle was being allocated.
Isn't multithreaded programming fun 
© Copyright 2008 Richard Blewett
Theme design by
Bryan Bell
newtelligence dasBlog 1.9.6264.0

| Page rendered at Friday, November 21, 2008 6:54:16 PM (GMT Standard Time, UTC+00:00)
Pick a theme: