IReaderWriterStateLocker(TState) Interface

Tungsten Suite

IReaderWriterStateLockerTState Interface

Interface definition for a ReaderWriterLocker with a State variable

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

Type Parameters

TState
The state Type

The IReaderWriterStateLockerTState type exposes the following members.

Methods
  NameDescription
Public methodGetState
Retrieves the internal state from within a ReaderWriterLockSlim
Public methodInLock(LockTypeEnum, ActionTState)
Executes an action from within a ReaderWriterLockSlim
Public methodInLockTValue(LockTypeEnum, FuncTState, TValue)
Executes a function from within a ReaderWriterLockSlim
Public methodInLockAsync(LockTypeEnum, ActionTState)
Executes an action from within a ReaderWriterLockSlim
Public methodInLockAsyncTValue(LockTypeEnum, FuncTState, TValue)
Executes a function from within a ReaderWriterLockSlim
Public methodSetState
Sets the internal state from within a ReaderWriterLockSlim
Top
See Also