RetroArch
Public Member Functions | Public Attributes | List of all members
Backoff Struct Reference

#include <backoff.h>

Public Member Functions

double rand01 ()
 
 Backoff (int64_t min, int64_t max)
 
void reset ()
 
int64_t nextDelay ()
 

Public Attributes

int64_t minAmount
 
int64_t maxAmount
 
int64_t current
 
int fails
 
std::mt19937_64 randGenerator
 
std::uniform_real_distribution randDistribution
 

Constructor & Destructor Documentation

◆ Backoff()

Backoff::Backoff ( int64_t  min,
int64_t  max 
)
inline

Member Function Documentation

◆ nextDelay()

int64_t Backoff::nextDelay ( )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rand01()

double Backoff::rand01 ( )
inline
Here is the caller graph for this function:

◆ reset()

void Backoff::reset ( )
inline
Here is the caller graph for this function:

Member Data Documentation

◆ current

int64_t Backoff::current

◆ fails

int Backoff::fails

◆ maxAmount

int64_t Backoff::maxAmount

◆ minAmount

int64_t Backoff::minAmount

◆ randDistribution

std::uniform_real_distribution Backoff::randDistribution

◆ randGenerator

std::mt19937_64 Backoff::randGenerator

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