Page Speed Optimization Libraries  1.6.29.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
net_instaweb::StatisticsWorkBound Class Reference

#include "statistics_work_bound.h"

Inheritance diagram for net_instaweb::StatisticsWorkBound:
net_instaweb::WorkBound

List of all members.

Public Member Functions

 StatisticsWorkBound (Variable *variable, int bound)
virtual bool TryToWork ()
virtual void WorkComplete ()

Detailed Description

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.


Constructor & Destructor Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines