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

A fair (first-come-first-serve) spin mutex. More...

#include <SpinMutex.h>

Public Types

using backoff_type = TBackoff
 

Public Member Functions

GTS_INLINE FairSpinMutex (FairSpinMutex &&other)
 
GTS_INLINE FairSpinMutexoperator= (FairSpinMutex &&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::FairSpinMutex< TBackoff >

A fair (first-come-first-serve) spin mutex.