libfoedus-core
FOEDUS Core Library
|
Helper for SPINLOCK_WHILE. More...
Helper for SPINLOCK_WHILE.
Definition at line 233 of file assorted_func.hpp.
#include <assorted_func.hpp>
Public Member Functions | |
SpinlockStat () | |
void | yield_backoff () |
Public Attributes | |
uint32_t | spins_ |
UniformRandom | rnd_ |
|
inline |
Definition at line 234 of file assorted_func.hpp.
void foedus::assorted::SpinlockStat::yield_backoff | ( | ) |
Definition at line 206 of file assorted_func.cpp.
References foedus::assorted::UniformRandom::next_uint32(), rnd_, foedus::assorted::UniformRandom::set_current_seed(), foedus::assorted::spinlock_yield(), spins_, and foedus::debugging::wait_rdtsc_cycles().
UniformRandom foedus::assorted::SpinlockStat::rnd_ |
Definition at line 238 of file assorted_func.hpp.
Referenced by yield_backoff().
uint32_t foedus::assorted::SpinlockStat::spins_ |
Definition at line 237 of file assorted_func.hpp.
Referenced by yield_backoff().