ewmscp  ..
Public Member Functions | Private Attributes | List of all members
throttle::action Class Reference

#include <throttle.h>

Collaboration diagram for throttle::action:
[legend]

Public Member Functions

 action (watch &aWatch, double aUnits=1.0)
 
 ~action ()
 

Private Attributes

watchlWatch
 
double units
 

Detailed Description

Definition at line 71 of file throttle.h.

Constructor & Destructor Documentation

◆ action()

throttle::action::action ( watch aWatch,
double  aUnits = 1.0 
)
inline

Definition at line 75 of file throttle.h.

75  :
76  lWatch(aWatch),
77  units(aUnits) {
78  lWatch.wait();
79  }

References lWatch, and throttle::watch::wait().

Here is the call graph for this function:

◆ ~action()

throttle::action::~action ( )
inline

Definition at line 80 of file throttle.h.

80  {
82  }

References lWatch, units, and throttle::watch::update().

Here is the call graph for this function:

Member Data Documentation

◆ lWatch

watch& throttle::action::lWatch
private

Definition at line 72 of file throttle.h.

Referenced by action(), and ~action().

◆ units

double throttle::action::units
private

Definition at line 73 of file throttle.h.

Referenced by ~action().


The documentation for this class was generated from the following file:
throttle::action::units
double units
Definition: throttle.h:73
throttle::action::lWatch
watch & lWatch
Definition: throttle.h:72
throttle::watch::wait
void wait()
Definition: throttle.h:50
throttle::watch::update
void update(double units=1.0)
Definition: throttle.h:35