Page Speed Optimization Libraries
1.4.26.1
|
#include "statistics_work_bound.h"
Public Member Functions | |
StatisticsWorkBound (Variable *variable, int bound) | |
virtual bool | TryToWork () |
virtual void | WorkComplete () |
A WorkBound implementation in terms of statistics. This is a bit of a hack that gets things implemented quickly (especially given the complexity of multiprocess shared-memory infrastructure, which we only want to roll once). Note in particular that we handle a NULL variable gracefully by imposing no bound at all.
net_instaweb::StatisticsWorkBound::StatisticsWorkBound | ( | Variable * | variable, |
int | bound | ||
) |
Note that ownership of variable remains with the creating Statistics object. If the bound is 0, the bound is actually infinite.