Monitor

Overview

Monitor class that wraps a (reentrant) system lock

Location

  • Reference:
    • Elements.dll  .NET, .NET Standard 2.0
    • elements.jar  Cooper
    • Elements.fx  Island, ToffeeV2
    • libElements.fx  Toffee
  • Namespace: RemObjects.Elements.RTL
  • Platforms: .NET, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
  • Mapped to:
    • ManualResetEvent  .NET, .NET Standard 2.0
    • ReentrantLock  Cooper
    • Monitor  Island
    • NSRecursiveLock  Toffee, ToffeeV2


Instance Methods


constructor

 

constructor

 

Monitor()

 

init()

 

Monitor()

 

Sub New()

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 Standard 2.0

 

method Lock

 

void Lock()

 

func Lock()

 

Sub Lock()

Unlock .NET, .NET Standard 2.0

 

method Unlock

 

void Unlock()

 

func Unlock()

 

Sub Unlock()

 

Implements