Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AtomicMutex

A managed mutex.

Hierarchy

  • AtomicMutex

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a new instance of an AtomicMutex.

    Returns AtomicMutex

Properties

Private __lock

__lock: AtomicInteger
internal

Methods

getIsLocked

  • getIsLocked(): boolean
  • Gets if the mutex is locked or not.

    Returns boolean

getTypeString

  • getTypeString(): string
  • Returns string

release

  • release(): void
  • Releases the lock.

    Returns void

tryLock

  • tryLock(): boolean
  • Tries to obtain a lock with this thread.

    Returns boolean