Name
Mutex
Synopsis
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 method Mutex(); public method Mutex(bool initiallyOwned); public method Mutex(bool initiallyOwned, string name); public method Mutex(bool initiallyOwned, string name, out bool createdNew); // Public Instance Methods public method void ReleaseMutex(); }
Hierarchy
System.Object→System.MarshalByRefObject→WaitHandle(System.IDisposable)→Mutex
Get C# in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.