Struct Lock.Holder
Represents acquired lock holder.
Inherited Members
Namespace: DotNext.Threading
Assembly: DotNext.dll
Syntax
public ref struct Lock.Holder
  Remarks
The lock can be released by calling Dispose().
Properties
| Edit this page View SourceIsEmpty
Indicates that this object doesn't hold the lock.
Declaration
public readonly bool IsEmpty { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
Methods
| Edit this page View SourceDispose()
Releases the acquired lock.
Declaration
public void Dispose()
  Remarks
This object is not reusable after calling of this method.
Operators
| Edit this page View Sourceimplicit operator bool(in Holder)
Indicates that the object holds successfully acquired lock.
Declaration
public static implicit operator bool(in Lock.Holder holder)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Lock.Holder | holder | The lock holder.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | true, if the object holds successfully acquired lock; otherwise, false.  |