ILocker(TLocker) Interface

Tungsten Suite

ILockerTLocker Interface

The required implementation for a locking object

Namespace:  W.Threading.Lockers
Assembly:  Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
Syntax
C#
public interface ILocker<TLocker> : ILocker

Type Parameters

TLocker
The type of locker to use (SpinLock, Monitor, SemaphoreSlim, ReaderWriterLock)

The ILockerTLocker type exposes the following members.

Properties
  NameDescription
Public propertyLocker
The object used for locking
Top
Methods
  NameDescription
Public methodInLock(Action)
Perform some action in a lock
(Inherited from ILocker.)
Public methodInLockTResult(FuncTResult)
Perform some function in a lock
(Inherited from ILocker.)
Public methodInLockAsync(Action) (Inherited from ILocker.)
Public methodInLockAsyncTResult(FuncTResult)
Asyncrhonously perform some function in a lock
(Inherited from ILocker.)
Top
See Also