webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Static Public Member Functions | List of all members
WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit > Class Template Reference

#include <LockAlgorithm.h>

Public Types

enum  Fairness {
  Fair, Unfair, Fair, Unfair,
  Fair, Unfair
}
 
enum  Fairness {
  Fair, Unfair, Fair, Unfair,
  Fair, Unfair
}
 
enum  Fairness {
  Fair, Unfair, Fair, Unfair,
  Fair, Unfair
}
 

Static Public Member Functions

static bool lockFastAssumingZero (Atomic< LockType > &lock)
 
static bool lockFast (Atomic< LockType > &lock)
 
static void lock (Atomic< LockType > &lock)
 
static bool tryLock (Atomic< LockType > &lock)
 
static bool unlockFastAssumingZero (Atomic< LockType > &lock)
 
static bool unlockFast (Atomic< LockType > &lock)
 
static void unlock (Atomic< LockType > &lock)
 
static void unlockFairly (Atomic< LockType > &lock)
 
static bool safepointFast (const Atomic< LockType > &lock)
 
static void safepoint (Atomic< LockType > &lock)
 
static bool isLocked (const Atomic< LockType > &lock)
 
static NEVER_INLINE void lockSlow (Atomic< LockType > &lock)
 
static NEVER_INLINE void unlockSlow (Atomic< LockType > &lock, Fairness fairness)
 
static NEVER_INLINE void safepointSlow (Atomic< LockType > &lockWord)
 
static bool lockFastAssumingZero (Atomic< LockType > &lock)
 
static bool lockFast (Atomic< LockType > &lock)
 
static void lock (Atomic< LockType > &lock)
 
static bool tryLock (Atomic< LockType > &lock)
 
static bool unlockFastAssumingZero (Atomic< LockType > &lock)
 
static bool unlockFast (Atomic< LockType > &lock)
 
static void unlock (Atomic< LockType > &lock)
 
static void unlockFairly (Atomic< LockType > &lock)
 
static bool safepointFast (const Atomic< LockType > &lock)
 
static void safepoint (Atomic< LockType > &lock)
 
static bool isLocked (const Atomic< LockType > &lock)
 
static NEVER_INLINE void lockSlow (Atomic< LockType > &lock)
 
static NEVER_INLINE void unlockSlow (Atomic< LockType > &lock, Fairness fairness)
 
static NEVER_INLINE void safepointSlow (Atomic< LockType > &lockWord)
 
static bool lockFastAssumingZero (Atomic< LockType > &lock)
 
static bool lockFast (Atomic< LockType > &lock)
 
static void lock (Atomic< LockType > &lock)
 
static bool tryLock (Atomic< LockType > &lock)
 
static bool unlockFastAssumingZero (Atomic< LockType > &lock)
 
static bool unlockFast (Atomic< LockType > &lock)
 
static void unlock (Atomic< LockType > &lock)
 
static void unlockFairly (Atomic< LockType > &lock)
 
static bool safepointFast (const Atomic< LockType > &lock)
 
static void safepoint (Atomic< LockType > &lock)
 
static bool isLocked (const Atomic< LockType > &lock)
 
static NEVER_INLINE void lockSlow (Atomic< LockType > &lock)
 
static NEVER_INLINE void unlockSlow (Atomic< LockType > &lock, Fairness fairness)
 
static NEVER_INLINE void safepointSlow (Atomic< LockType > &lockWord)
 

Member Enumeration Documentation

◆ Fairness [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
enum WTF::LockAlgorithm::Fairness
Enumerator
Fair 
Unfair 
Fair 
Unfair 
Fair 
Unfair 

◆ Fairness [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
enum WTF::LockAlgorithm::Fairness
Enumerator
Fair 
Unfair 
Fair 
Unfair 
Fair 
Unfair 

◆ Fairness [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
enum WTF::LockAlgorithm::Fairness
Enumerator
Fair 
Unfair 
Fair 
Unfair 
Fair 
Unfair 

Member Function Documentation

◆ isLocked() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::isLocked ( const Atomic< LockType > &  lock)
inlinestatic

◆ isLocked() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::isLocked ( const Atomic< LockType > &  lock)
inlinestatic

◆ isLocked() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::isLocked ( const Atomic< LockType > &  lock)
inlinestatic

◆ lock() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lock ( Atomic< LockType > &  lock)
inlinestatic

◆ lock() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lock ( Atomic< LockType > &  lock)
inlinestatic

◆ lock() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lock ( Atomic< LockType > &  lock)
inlinestatic

◆ lockFast() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lockFast ( Atomic< LockType > &  lock)
inlinestatic

◆ lockFast() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lockFast ( Atomic< LockType > &  lock)
inlinestatic

◆ lockFast() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lockFast ( Atomic< LockType > &  lock)
inlinestatic

◆ lockFastAssumingZero() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lockFastAssumingZero ( Atomic< LockType > &  lock)
inlinestatic

◆ lockFastAssumingZero() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lockFastAssumingZero ( Atomic< LockType > &  lock)
inlinestatic

◆ lockFastAssumingZero() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lockFastAssumingZero ( Atomic< LockType > &  lock)
inlinestatic

◆ lockSlow() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static NEVER_INLINE void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lockSlow ( Atomic< LockType > &  lock)
inlinestatic

◆ lockSlow() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static NEVER_INLINE void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lockSlow ( Atomic< LockType > &  lock)
inlinestatic

◆ lockSlow() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static NEVER_INLINE void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::lockSlow ( Atomic< LockType > &  lock)
inlinestatic

◆ safepoint() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::safepoint ( Atomic< LockType > &  lock)
inlinestatic

◆ safepoint() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::safepoint ( Atomic< LockType > &  lock)
inlinestatic

◆ safepoint() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::safepoint ( Atomic< LockType > &  lock)
inlinestatic

◆ safepointFast() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::safepointFast ( const Atomic< LockType > &  lock)
inlinestatic

◆ safepointFast() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::safepointFast ( const Atomic< LockType > &  lock)
inlinestatic

◆ safepointFast() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::safepointFast ( const Atomic< LockType > &  lock)
inlinestatic

◆ safepointSlow() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static NEVER_INLINE void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::safepointSlow ( Atomic< LockType > &  lockWord)
inlinestatic

◆ safepointSlow() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static NEVER_INLINE void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::safepointSlow ( Atomic< LockType > &  lockWord)
inlinestatic

◆ safepointSlow() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static NEVER_INLINE void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::safepointSlow ( Atomic< LockType > &  lockWord)
inlinestatic

◆ tryLock() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::tryLock ( Atomic< LockType > &  lock)
inlinestatic

◆ tryLock() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::tryLock ( Atomic< LockType > &  lock)
inlinestatic

◆ tryLock() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::tryLock ( Atomic< LockType > &  lock)
inlinestatic

◆ unlock() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlock ( Atomic< LockType > &  lock)
inlinestatic

◆ unlock() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlock ( Atomic< LockType > &  lock)
inlinestatic

◆ unlock() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlock ( Atomic< LockType > &  lock)
inlinestatic

◆ unlockFairly() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockFairly ( Atomic< LockType > &  lock)
inlinestatic

◆ unlockFairly() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockFairly ( Atomic< LockType > &  lock)
inlinestatic

◆ unlockFairly() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockFairly ( Atomic< LockType > &  lock)
inlinestatic

◆ unlockFast() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockFast ( Atomic< LockType > &  lock)
inlinestatic

◆ unlockFast() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockFast ( Atomic< LockType > &  lock)
inlinestatic

◆ unlockFast() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockFast ( Atomic< LockType > &  lock)
inlinestatic

◆ unlockFastAssumingZero() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockFastAssumingZero ( Atomic< LockType > &  lock)
inlinestatic

◆ unlockFastAssumingZero() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockFastAssumingZero ( Atomic< LockType > &  lock)
inlinestatic

◆ unlockFastAssumingZero() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static bool WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockFastAssumingZero ( Atomic< LockType > &  lock)
inlinestatic

◆ unlockSlow() [1/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static NEVER_INLINE void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockSlow ( Atomic< LockType > &  lock,
Fairness  fairness 
)
inlinestatic

◆ unlockSlow() [2/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static NEVER_INLINE void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockSlow ( Atomic< LockType > &  lock,
Fairness  fairness 
)
inlinestatic

◆ unlockSlow() [3/3]

template<typename LockType , LockType isHeldBit, LockType hasParkedBit>
static NEVER_INLINE void WTF::LockAlgorithm< LockType, isHeldBit, hasParkedBit >::unlockSlow ( Atomic< LockType > &  lock,
Fairness  fairness 
)
inlinestatic

The documentation for this class was generated from the following file: