~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/single_thread/single_thread.cc

Merged in plugin-slot-reorg patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
static int init(drizzled::plugin::Registry &registry)
81
81
{
82
82
  factory= new SingleThreadFactory();
83
 
  registry.add(factory);
 
83
  registry.scheduler.add(factory);
84
84
  return 0;
85
85
}
86
86
 
88
88
{
89
89
  if (factory)
90
90
  {
91
 
    registry.remove(factory);
 
91
    registry.scheduler.remove(factory);
92
92
    delete factory;
93
93
  }
94
94
  return 0;