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
Syntax
C#
public interface IReaderWriterStateLocker<TState>
Type Parameters
- TState
- The state Type
The IReaderWriterStateLockerTState type exposes the following members.
Methods
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
|
See Also