IReaderWriterStateLocker(TState) Interface
From Tungsten Suite
Tungsten
|
|
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
C#
public interface IReaderWriterStateLocker<TState>
Type Parameters
- TState
- The state Type
The IReaderWriterStateLockerTState type exposes the following members.
| Name | Description | |
|---|---|---|
| GetState |
Retrieves the internal state from within a ReaderWriterLockSlim
| |
| InLock(LockTypeEnum, ActionTState) |
Executes an action from within a ReaderWriterLockSlim
| |
| InLockTValue(LockTypeEnum, FuncTState, TValue) |
Executes a function from within a ReaderWriterLockSlim
| |
| InLockAsync(LockTypeEnum, ActionTState) |
Executes an action from within a ReaderWriterLockSlim
| |
| InLockAsyncTValue(LockTypeEnum, FuncTState, TValue) |
Executes a function from within a ReaderWriterLockSlim
| |
| SetState |
Sets the internal state from within a ReaderWriterLockSlim
|