|
Page Speed Optimization Libraries
1.13.35.1
|
#include "scheduler_thread.h"
Public Member Functions | |
| SchedulerThread (ThreadSystem *thread_system, Scheduler *scheduler) | |
| Creates the thread. The user still needs to call Start() manually. | |
| Function * | MakeDeleter () |
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 () |
Friends | |
| class | CleanupFunction |
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.
| 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.
1.8.6