Need clarification on Mutex.WaitOne method.
- From: "Ken Varn" <nospam>
- Date: Tue, 31 Oct 2006 16:49:31 -0500
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?
The documentation states that when no arguments are passed to WaitOne() that
it translates to a WaitOne(-1,false) call.
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?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.
EmailID = varnk
Domain = Diebold.com
-----------------------------------
.
- Follow-Ups:
- Re: Need clarification on Mutex.WaitOne method.
- From: Jon Shemitz
- Re: Need clarification on Mutex.WaitOne method.
- Prev by Date: Re: Question about file write bufferring.
- Next by Date: Re: Need clarification on Mutex.WaitOne method.
- Previous by thread: Re: Question about file write bufferring.
- Next by thread: Re: Need clarification on Mutex.WaitOne method.
- Index(es):
Relevant Pages
|