net_instaweb::SchedulerThread Class Reference

#include "scheduler_thread.h"

Inheritance diagram for net_instaweb::SchedulerThread:
net_instaweb::ThreadSystem::Thread

List of all members.

Public Member Functions

 SchedulerThread (ThreadSystem *thread_system, Scheduler *scheduler)
 Creates the thread. The user still needs to call Start() manually.
FunctionMakeDeleter ()

Protected Member Functions

virtual void Run ()

Friends

class CleanupFunction

Detailed Description

This class is a helper used to dispatch events on a scheduler in a thread in case where the server infrastructure is non-blocking and therefore does not provide a natural way to do it.


Member Function Documentation

Function* net_instaweb::SchedulerThread::MakeDeleter (  ) 

Returns a function that, when run, will properly synchronize with this thread and shut it down cleanly, deleting the object as well. It is suggested for use with RewriteDriverFactory::defer_delete(); as it needs to be run after it's OK if scheduler timeouts no longer work.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Tue May 29 16:34:16 2012 for Page Speed Optimization Libraries by  doxygen 1.6.3