Games Task Scheduler (GTS)
A multi-processor scheduling framework for games engines
gts::UnfairSpinMutex< TBackoff > Class Template Reference

A unfair (first-ready-first-serve) spin mutex. More...

#include <SpinMutex.h>

Public Types

using backoff_type = TBackoff
 

Public Member Functions

GTS_INLINE UnfairSpinMutex (UnfairSpinMutex &&other)
 
GTS_INLINE UnfairSpinMutexoperator= (UnfairSpinMutex &&other)
 
GTS_INLINE bool try_lock ()
 
GTS_INLINE void lock ()
 
GTS_INLINE void unlock ()
 
GTS_INLINE bool isLocked () const
 

Detailed Description

template<typename TBackoff = Backoff<BackoffGrowth::Geometric, true>>
class gts::UnfairSpinMutex< TBackoff >

A unfair (first-ready-first-serve) spin mutex.