Page Speed Optimization Libraries
1.13.35.1
|
#include "expensive_operation_controller.h"
Public Member Functions | |
virtual void | ScheduleExpensiveOperation (Function *callback)=0 |
virtual void | NotifyExpensiveOperationComplete ()=0 |
Abstract interface class that supports PSOL operations for rate-limiting CPU intensive operations. For use in CentralController.
|
pure virtual |
Inform controller that the operation has been completed. Should only be called if Run() was invoked on callback above.
Implemented in net_instaweb::QueuedExpensiveOperationController, and net_instaweb::WorkBoundExpensiveOperationController.
|
pure virtual |
Run callback at an indeterminate time in the future when it is safe to perform a CPU intensive operation. May Cancel the callback at some point if it is determined that the work cannot be performed.
Implemented in net_instaweb::QueuedExpensiveOperationController, and net_instaweb::WorkBoundExpensiveOperationController.