Page Speed Optimization Libraries
1.3.25.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 () |
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.
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.