FMLiveSwitchAtomicMutex Class Reference

A managed mutex. More...

Instance Methods

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

Class Methods

(FMLiveSwitchAtomicMutex *) + atomicMutex
 Creates a new instance of an AtomicMutex. More...
 

Detailed Description

A managed mutex.

Method Documentation

◆ atomicMutex

+ (FMLiveSwitchAtomicMutex*) atomicMutex

Creates a new instance of an AtomicMutex.

◆ init

- (instancetype) init

Creates a new instance of an AtomicMutex.

◆ isLocked

- (bool) isLocked

Gets if the mutex is locked or not.

◆ release

- (void) release

Releases the lock.

◆ tryLock

- (bool) tryLock

Tries to obtain a lock with this thread.