~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/multi_thread/multi_thread.cc

  • Committer: Stewart Smith
  • Date: 2010-03-30 13:10:50 UTC
  • mfrom: (1283.34.4)
  • mto: (1283.37.1)
  • mto: This revision was merged to the branch mainline in revision 1475.
  • Revision ID: stewart@flamingspork.com-20100330131050-b3hwar8bihn1s1qf
Merged embedded-innodb-full-index-read into embedded-innodb-position-rnd-pos.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
}
88
88
 
89
89
  
90
 
static int init(drizzled::plugin::Registry &registry)
 
90
static int init(drizzled::plugin::Context &context)
91
91
{
92
92
  scheduler= new MultiThreadScheduler("multi_thread");
93
 
  registry.add(scheduler);
94
 
 
95
 
  return 0;
96
 
}
97
 
 
98
 
static int deinit(drizzled::plugin::Registry &registry)
99
 
{
100
 
  registry.remove(scheduler);
101
 
  delete scheduler;
 
93
  context.add(scheduler);
102
94
 
103
95
  return 0;
104
96
}
122
114
  "One Thread Per Session Scheduler",
123
115
  PLUGIN_LICENSE_GPL,
124
116
  init, /* Plugin Init */
125
 
  deinit, /* Plugin Deinit */
126
117
  sys_variables,   /* system variables */
127
118
  NULL    /* config options */
128
119
}