/ fm / liveswitch / AtomicMutex
Class: AtomicMutex
fm.liveswitch.AtomicMutex
A managed mutex.
Table of contents
Constructors
Methods
Constructors
constructor
+ new AtomicMutex(): AtomicMutex
Creates a new instance of an AtomicMutex.
Returns: AtomicMutex
Defined in: Generated/TypeScript/fm.liveswitch/AtomicMutex.ts:13
Methods
getIsLocked
▸ getIsLocked(): boolean
Gets if the mutex is locked or not.
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/AtomicMutex.ts:37
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/AtomicMutex.ts:9
release
▸ release(): void
Releases the lock.
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/AtomicMutex.ts:49
tryLock
▸ tryLock(): boolean
Tries to obtain a lock with this thread.
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/AtomicMutex.ts:61