~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/multi_thread/multi_thread.cc

  • Committer: Monty Taylor
  • Date: 2009-04-17 19:04:13 UTC
  • mto: (997.2.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 996.
  • Revision ID: mordred@inaugust.com-20090417190413-86859aoqvn6mymvx
Store a Registry of SchedulerFactories and set one of them at startup for better error messages earlier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
100
100
class MultiThreadFactory : public SchedulerFactory
101
101
{
102
102
public:
103
 
  MultiThreadFactory() : SchedulerFactory("multi_thread") {}
 
103
  MultiThreadFactory() : SchedulerFactory("multi_thread")
 
104
  {
 
105
    addAlias("multi-thread");
 
106
  }
 
107
 
104
108
  ~MultiThreadFactory() { if (scheduler != NULL) delete scheduler; }
105
109
  Scheduler *operator() ()
106
110
  {