fm.liveswitch.AtomicMutex Class Reference

A managed mutex. More...

Public Member Functions

 AtomicMutex ()
 Creates a new instance of an AtomicMutex. More...
 
boolean getIsLocked ()
 Gets if the mutex is locked or not. More...
 
void release ()
 Releases the lock. More...
 
boolean tryLock ()
 Tries to obtain a lock with this thread. More...
 

Detailed Description

A managed mutex.

Constructor & Destructor Documentation

◆ AtomicMutex()

fm.liveswitch.AtomicMutex.AtomicMutex ( )

Creates a new instance of an AtomicMutex.

Member Function Documentation

◆ getIsLocked()

boolean fm.liveswitch.AtomicMutex.getIsLocked ( )

Gets if the mutex is locked or not.

◆ release()

void fm.liveswitch.AtomicMutex.release ( )

Releases the lock.

◆ tryLock()

boolean fm.liveswitch.AtomicMutex.tryLock ( )

Tries to obtain a lock with this thread.