August 2003
Intermediate to advanced
928 pages
32h 1m
English
Mutex
A Mutex is an implementation
of a
WaitHandle. ReleaseMutex( )
releases a lock on a WaitHandle. A thread that
owns a Mutex lock can call any of the
Wait( ) methods (defined in the parent class,
WaitHandle) without blocking, but must then
release the Mutex the same number of times as the
Mutex was obtained.
public sealed class Mutex : WaitHandle { // Public Constructors public Mutex( ); public Mutex(boolinitiallyOwned); public Mutex(boolinitiallyOwned, stringname); public Mutex(boolinitiallyOwned, stringname, out boolcreatedNew); // Public Instance Methods public void ReleaseMutex( ); }
System.Object
→
System.MarshalByRefObject
→
WaitHandle(System.IDisposable)
→
Mutex