AsyncLock Class

Represents a lock that can be awaited to obtain exclusive access to resources within a critical region of code.

Definition

Namespace: Gemstone.Threading
Assembly: Gemstone.Threading (in Gemstone.Threading.dll) Version: 1.0.110 -- Release Build+13c244059615c58a533059438f38d7e59ef0c2ea
public class AsyncLock
Inheritance
Object    AsyncLock

Constructors

AsyncLockInitializes a new instance of the AsyncLock class

Methods

EnterAsync Obtains exclusive access to the lock.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryEnterAsync Attempts to obtain exclusive access to the lock.
TryEnterAsync(Int32) Attempts to obtain exclusive access to the lock.
TryEnterAsync(TimeSpan) Attempts to obtain exclusive access to the lock.

See Also