~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/single_thread/single_thread.cc

  • Committer: Monty Taylor
  • Date: 2010-02-05 08:11:15 UTC
  • mfrom: (1283 build)
  • mto: (1273.13.43 fix_is)
  • mto: This revision was merged to the branch mainline in revision 1300.
  • Revision ID: mordred@inaugust.com-20100205081115-dr82nvrwv4lvw7sd
Merged trunk.

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(drizzled::plugin::Registry &registry)
 
27
static int init(plugin::Registry &registry)
28
28
{
29
29
  scheduler= new SingleThreadScheduler("single_thread");
30
30
  registry.add(scheduler);
31
31
  return 0;
32
32
}
33
33
 
34
 
static int deinit(drizzled::plugin::Registry &registry)
 
34
static int deinit(plugin::Registry &registry)
35
35
{
36
36
  registry.remove(scheduler);
37
37
  delete scheduler;
39
39
  return 0;
40
40
}
41
41
 
42
 
static drizzle_sys_var* system_variables[]= {
43
 
  NULL
44
 
};
45
 
 
46
42
DRIZZLE_DECLARE_PLUGIN
47
43
{
48
44
  DRIZZLE_VERSION_ID,
54
50
  init, /* Plugin Init */
55
51
  deinit, /* Plugin Deinit */
56
52
  NULL,   /* status variables */
57
 
  system_variables,   /* system variables */
 
53
  NULL,   /* system variables */
58
54
  NULL    /* config options */
59
55
}
60
56
DRIZZLE_DECLARE_PLUGIN_END;