MonitorExtensions.InLock(TType) Method (Object, Func(TType))
From Tungsten Suite
Tungsten
|
|
MonitorExtensionsInLockTType Method (Object, FuncTType) |
Performs the function in a Monitor lock
Namespace: W.Threading.Lockers
Assembly: Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
C#
public static TType InLock<TType>( this Object this, Func<TType> func )
Parameters
- this
- Type: SystemObject
The object to provide resource locking - func
- Type: SystemFuncTType
The function to perform
Type Parameters
- TType
[Missing <typeparam name="TType"/> documentation for "M:W.Threading.Lockers.MonitorExtensions.InLock``1(System.Object,System.Func{``0})"]
Return Value
Type: TType[Missing <returns> documentation for "M:W.Threading.Lockers.MonitorExtensions.InLock``1(System.Object,System.Func{``0})"]