Mutex

Mutex CF 1.0, marshal by reference, disposable

System.Threading (mscorlib.dll) sealed class

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  (bool   initiallyOwned   );    public  Mutex  (bool   initiallyOwned   , string   name   );    public  Mutex  (bool   initiallyOwned   , string   name   , out bool   createdNew   );  // Public Instance Methods  public void  ReleaseMutex  ( ); } 

Hierarchy

System.Object System.MarshalByRefObject WaitHandle(System.IDisposable) Mutex



C# in a Nutshell
C # in a Nutshell, Second Edition
ISBN: 0596005261
EAN: 2147483647
Year: 2005
Pages: 963

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net