Show / Hide Table of Contents

Struct Lock.Holder

Represents acquired lock holder.

Inherited Members
ValueType.Equals(Object)
ValueType.GetHashCode()
ValueType.ToString()
Object.Equals(Object, Object)
Object.GetType()
Object.ReferenceEquals(Object, Object)
Namespace: DotNext.Threading
Assembly: DotNext.dll
Syntax
public struct Holder
Remarks

The lock can be released by calling Dispose().

Properties

| Improve this Doc View Source

IsEmpty

Indicates that this object doesn't hold the lock.

Declaration
public bool IsEmpty { get; }
Property Value
Type Description
Boolean

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.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX