Click or drag to resize

wclMutex Class

The class represents a mutex synchronization object.
Inheritance Hierarchy

Namespace: wclSync
Assembly: wclCommon (in wclCommon.dll) Version: 7.13.7.0 (7.13.7.0)
Syntax
public class wclMutex : wclNamedSyncObject

The wclMutex type exposes the following members.

Constructors
 NameDescription
Protected methodwclMutex Creates new mutex object.
Top
Properties
 NameDescription
Protected propertyDisposed Gets the disposing state.
(Inherited from wclSyncObject)
Public propertyHandle Gets the system dependent synchronization object handle.
(Inherited from wclWaitableSyncObject)
Top
Methods
 NameDescription
Public methodAcquire Acquires the mutex object.
Public methodAcquire(UInt32) Tries to acquire the mutex object during the given time-out interval.
Public methodStatic memberCreate Creates an unnamed mutex object.
Public methodStatic memberCreate(String) Creates or opens a named mutex object.
Public methodStatic memberCreate(String, Boolean) Creates or opens a named mutex object.
Public methodDispose Disposes the synchronization object.
(Inherited from wclSyncObject)
Public methodEqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from Object)
Protected methodFree Frees the object.
(Inherited from wclWaitableSyncObject)
Public methodGetHashCodeServes as a hash function for a particular type.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberOpen Opens an existing mutex with the specified name.
Public methodRelease Releases the mutex object.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Protected methodWaitOne Waits until the object is in the signaled state.
(Inherited from wclWaitableSyncObject)
Protected methodWaitOne(UInt32) Waits until the object is in the signaled state or the time-out interval elapses.
(Inherited from wclWaitableSyncObject)
Top
Remarks
A mutex object is a synchronization object whose state is set to signaled when it is not owned by any thread, and nonsignaled when it is owned. Only one thread at a time can own a mutex object, whose name comes from the fact that it is useful in coordinating mutually exclusive access to a shared resource.
See Also