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
  • Mapped to:
    • System.Threading.ManualResetEvent  .NET, .NET Standard 2.0
    • java.util.concurrent.locks.ReentrantLock  Cooper
    • RemObjects.Elements.System.Monitor  Island
    • Foundation.NSRecursiveLock  Toffee, ToffeeV2

Instance Methods


constructor

 

constructor

 

Monitor()

 

init()

 

Monitor()

Lock

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()

Unlock

Unlock this monitor.

 

method Unlock

 

void Unlock()

 

func Unlock()

 

void Unlock()