MonitorExtensions.InLock Method (Object, Action)
From Tungsten Suite
Tungsten
|
|
MonitorExtensionsInLock Method (Object, Action) |
Performs the action in a Monitor lock
Namespace: W.Threading.Lockers
Assembly: Tungsten.Threading.Lockers (in Tungsten.Threading.Lockers.dll) Version: 2.0.1
C#
public static void InLock( this Object this, Action action )
Parameters
- this
- Type: SystemObject
The object to provide resource locking - action
- Type: SystemAction
The action to perform