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 NotInheritable Class Mutex : Inherits WaitHandle
' Public Constructors
   Public Sub New() 
   Public Sub New( ByVal initiallyOwned As Boolean) 
   Public Sub New(ByVal initiallyOwned As Boolean, 
        ByVal name As String) 
   Public Sub New(ByVal initiallyOwned As Boolean, 
        ByVal name As String, ByRef createdNew As Boolean) 
' Public Instance Methods
   Public Sub ReleaseMutex() 
End Class

Hierarchy

System.ObjectSystem.MarshalByRefObjectWaitHandle(System.IDisposable) Mutex

Get VB.NET Core Classes 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.