~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/single_thread/single_thread.cc

  • Committer: Stewart Smith
  • Date: 2010-03-15 04:42:26 UTC
  • mto: (1283.38.1)
  • mto: This revision was merged to the branch mainline in revision 1475.
  • Revision ID: stewart@flamingspork.com-20100315044226-q74o953r9h98brm4
basic embedded innodb DATA_DICTIONARY.INNODB_CONFIGURATION test

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
static SingleThreadScheduler *scheduler= NULL;
25
25
 
26
26
 
27
 
static int init(plugin::Context &context)
 
27
static int init(plugin::Registry &registry)
28
28
{
29
29
  scheduler= new SingleThreadScheduler("single_thread");
30
 
  context.add(scheduler);
 
30
  registry.add(scheduler);
 
31
  return 0;
 
32
}
 
33
 
 
34
static int deinit(plugin::Registry &registry)
 
35
{
 
36
  registry.remove(scheduler);
 
37
  delete scheduler;
 
38
 
31
39
  return 0;
32
40
}
33
41
 
40
48
  "Single Thread Scheduler",
41
49
  PLUGIN_LICENSE_GPL,
42
50
  init, /* Plugin Init */
 
51
  deinit, /* Plugin Deinit */
43
52
  NULL,   /* system variables */
44
53
  NULL    /* config options */
45
54
}