
Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Well, I've gone to the lock for now, and when I was stripping all the
comments out of the original function, I found that I had a return that
wouldn't release the mutex in certain circumstances. Doh!
A Homer moment :(
In THEORY, however (if I hadn't had that leaking MUTEX issue)... was my
concept of Mutex implementation sound?
Brian Hampson
Jon wrote:
> > I'm new to getting multi-threading working in C#, so I'm looking for
> > some help with Mutexes.
[quoted text clipped - 16 lines]
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too
Jon Skeet [C# MVP] - 15 Nov 2006 22:38 GMT
> Well, I've gone to the lock for now, and when I was stripping all the
> comments out of the original function, I found that I had a return that
[quoted text clipped - 4 lines]
> In THEORY, however (if I hadn't had that leaking MUTEX issue)... was my
> concept of Mutex implementation sound?
Well, the theory of "wait for the mutex, then release it" is sound - so
long as you don't have multiple mutexes and obtain them in different
orders, etc.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too