Show / Hide Table of Contents

Struct Lock.Holder

Represents acquired lock holder.

Implements
IDisposable
Namespace: DotNext.Threading
Assembly: DotNext.dll
Syntax
public struct Holder : IDisposable
Remarks

The lock can be released by calling Dispose().

Methods

| Improve this Doc View Source

Dispose()

Releases the acquired lock.

Declaration
public void Dispose()
Remarks

This object is not reusable after calling of this method.

Operators

| Improve this Doc View Source

False(Lock.Holder)

Indicates that the object doesn't hold the lock.

Declaration
public static bool operator false (in Lock.Holder holder)
Parameters
Type Name Description
Lock.Holder holder

The lock holder.

Returns
Type Description
Boolean

false, if the object holds successfully acquired lock; otherwise, true.

| Improve this Doc View Source

True(Lock.Holder)

Indicates that the object holds successfully acquired lock.

Declaration
public static bool operator true (in Lock.Holder holder)
Parameters
Type Name Description
Lock.Holder holder

The lock holder.

Returns
Type Description
Boolean

true, if the object holds successfully acquired lock; otherwise, false.

Implements

IDisposable

Extension Methods

ExpressionBuilder.Const<T>(T)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX