Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Friends | List of all members
net_instaweb::SchedulerThread Class Reference

#include "scheduler_thread.h"

Inheritance diagram for net_instaweb::SchedulerThread:

Public Member Functions

 SchedulerThread (ThreadSystem *thread_system, Scheduler *scheduler)
 Creates the thread. The user still needs to call Start() manually.
FunctionMakeDeleter ()
- Public Member Functions inherited from net_instaweb::ThreadSystem::Thread
 Thread (ThreadSystem *runtime, StringPiece name, ThreadFlags flags)
virtual ~Thread ()
bool Start ()
bool Started () const
void Join ()
GoogleString name () const

Protected Member Functions

virtual void Run ()


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_cleanup(); 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: