Pin
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
complexlock.cpp File Reference
#include "level_base.H"

Functions

STAT_UINT64 LEVEL_BASE::STAT_TotalAttempts_COMPLEXLOCK ("pin","complexlock","attempts","")
 
STAT_UINT64 LEVEL_BASE::STAT_TotalSpins_COMPLEXLOCK ("pin","complexlock","spins_total","")
 
STAT_UINT64 LEVEL_BASE::STAT_MaxSpins_COMPLEXLOCK ("pin","complexlock","spins_max","")
 
STAT_NORM LEVEL_BASE::STAT_WaitTime_COMPLEXLOCK ("pin","time","complexlock_wait","",&TimerApp)
 
ATOMIC_STATS LEVEL_BASE::STAT_Backoff_COMPLEXLOCK ("pin","complexlock")
 

Detailed Description

A lock that is more full-featured than a "simple" lock. This lock uses a loop over yield to wait on the lock. The Linux implementation uses FUTEX and is implemented in futexlock.cpp.