HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_ThreadBackoff Class Reference

#include <UT_Thread.h>

Public Member Functions

 UT_ThreadBackoff ()
 
void wait ()
 
void reset ()
 

Static Public Attributes

static const uint cycles_for_noop = 4
 
static const uint cycles_for_pause = cycles_for_noop * 4
 
static const uint cycles_for_yield_higher = cycles_for_pause * 2
 
static const uint cycles_for_yield_all = cycles_for_yield_higher * 2
 

Detailed Description

Definition at line 364 of file UT_Thread.h.

Constructor & Destructor Documentation

UT_ThreadBackoff::UT_ThreadBackoff ( )
inline

Definition at line 367 of file UT_Thread.h.

Member Function Documentation

void UT_ThreadBackoff::reset ( void  )
inline

Definition at line 399 of file UT_Thread.h.

void UT_ThreadBackoff::wait ( )
inline

Definition at line 375 of file UT_Thread.h.

Member Data Documentation

const uint UT_ThreadBackoff::cycles_for_noop = 4
static

Definition at line 369 of file UT_Thread.h.

const uint UT_ThreadBackoff::cycles_for_pause = cycles_for_noop * 4
static

Definition at line 370 of file UT_Thread.h.

const uint UT_ThreadBackoff::cycles_for_yield_all = cycles_for_yield_higher * 2
static

Definition at line 372 of file UT_Thread.h.

const uint UT_ThreadBackoff::cycles_for_yield_higher = cycles_for_pause * 2
static

Definition at line 371 of file UT_Thread.h.


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