
Signature
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------
> If I have a thread that calls WaitOne() on a Mutex object with no arguments,
> is the Mutex owned by the calling thread once the WaitOne() call returns?
Yes.
> I am confused about the bool argument of the Mutex. If false is passed to a
> WaitOne call, is the mutex then acquired by the calling thread or does it
> just indicate that the mutex is now free, but not acquired?
No. The boolean parameter is for use with a ContextBoundObject. That's
a complex subject, and odds are good that you'd know if you were using
a ContextBoundObject if you were.

Signature
.NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
Delphi skills make .NET easy to learn Great reviews & good sales.
Jon Shemitz - 01 Nov 2006 00:03 GMT
Grr.
> odds are good that you'd know if you were using
> a ContextBoundObject if you were.
s/b "odds are good that you'd know you were using a ContextBoundObject
if you were."

Signature
.NET 2.0 for Delphi Programmers www.midnightbeach.com/.net
Delphi skills make .NET easy to learn Great reviews & good sales.