Page Speed Optimization Libraries  1.13.35.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
scheduler_thread.h
Go to the documentation of this file.
1 // Copyright 2011 Google Inc.
19 
20 #ifndef PAGESPEED_KERNEL_THREAD_SCHEDULER_THREAD_H_
21 #define PAGESPEED_KERNEL_THREAD_SCHEDULER_THREAD_H_
22 
26 
27 namespace net_instaweb {
28 
29 class Function;
30 class Scheduler;
31 
36  public:
38  SchedulerThread(ThreadSystem* thread_system, Scheduler* scheduler);
39 
45 
46  protected:
47  virtual void Run();
48 
49  private:
50  class CleanupFunction;
51  friend class CleanupFunction;
52 
53  virtual ~SchedulerThread();
54 
55  bool quit_;
56  Scheduler* scheduler_;
57 
58 
59 };
60 
61 }
62 
63 #endif
Definition: function.h:47
Definition: scheduler_thread.h:35
SchedulerThread(ThreadSystem *thread_system, Scheduler *scheduler)
Creates the thread. The user still needs to call Start() manually.
Definition: thread_system.h:40
Definition: scheduler.h:47
Base class for client thread code.
Definition: thread.h:34