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

See file comment. More...

#include "slow_worker.h"

Inheritance diagram for net_instaweb::SlowWorker:
net_instaweb::Worker

List of all members.

Public Member Functions

 SlowWorker (ThreadSystem *runtime)
virtual ~SlowWorker ()
 This waits for the running task to terminate.
void RunIfNotBusy (Function *closure)

Detailed Description

See file comment.


Constructor & Destructor Documentation

Initializes the worker. You still need to call ->Start to actually start the thread, however. (Note: start can return false on failure).


Member Function Documentation

If this SlowWorker's thread is currently idle, it will run the closure. Otherwise, the closure will simply be deleted.

Takes ownership of the closure.


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