~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/scheduler.h

  • Committer: Brian Aker
  • Date: 2009-04-13 16:22:40 UTC
  • mfrom: (971.1.78 mordred)
  • Revision ID: brian@gaz-20090413162240-ugi3gvhofmcuglzl
Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
  uint32_t max_threads;
30
30
public:
31
31
 
32
 
  Scheduler(uint32_t threads) : max_threads(threads) {}
 
32
  Scheduler(uint32_t threads)
 
33
    : max_threads(threads) {}
33
34
 
34
35
  virtual ~Scheduler() {}
35
36
 
52
53
  virtual void post_kill_notification(Session *) {}
53
54
};
54
55
 
 
56
class SchedulerFactory
 
57
{
 
58
  std::string name;
 
59
protected:
 
60
  Scheduler *scheduler;
 
61
public:
 
62
  SchedulerFactory(std::string name_arg): name(name_arg), scheduler(NULL) {}
 
63
  SchedulerFactory(const char *name_arg): name(name_arg), scheduler(NULL) {}
 
64
  virtual ~SchedulerFactory() {}
 
65
  virtual Scheduler *operator()(void)= 0;
 
66
  std::string getName() {return name;}
 
67
};
 
68
 
55
69
#endif /* DRIZZLED_PLUGIN_SCHEDULING_H */