Monitor
Overview
Monitor class that wraps a (reentrant) system lock
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
-
Mapped to:
- ManualResetEvent .NET, .NET Core 6.0, .NET Standard 2.0
- ReentrantLock Cooper
- Monitor Island
- NSRecursiveLock Toffee, ToffeeV2
Instance Methods
constructor .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, ToffeeV2
constructor
Monitor()
init()
Monitor()
Sub New()
constructor $New() Toffee
init($New )
Parameters:
- :
Lock Cooper, Island, Toffee, ToffeeV2
Locks; this blocks if another thread is currently locked, until it calls unlock and ensurethat only 1 thread at a time will enter this lock.
method Lock
void Lock()
func Lock()
void Lock()
Sub Lock()
Unlock Cooper, Island, Toffee, ToffeeV2
Unlock this monitor.
method Unlock
void Unlock()
func Unlock()
void Unlock()
Sub Unlock()
Lock .NET, .NET Core 6.0, .NET Standard 2.0
method Lock
void Lock()
func Lock()
Sub Lock()
Unlock .NET, .NET Core 6.0, .NET Standard 2.0
method Unlock
void Unlock()
func Unlock()
Sub Unlock()