~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/single_thread/single_thread.cc

  • Committer: Siddharth Prakash Singh
  • Date: 2010-03-26 19:25:23 UTC
  • mfrom: (1410 drizzle)
  • mto: This revision was merged to the branch mainline in revision 1425.
  • Revision ID: spsneo@spsneo-laptop-20100326192523-ibjlbt1p692vobtj
merging with 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(plugin::Registry &registry)
 
27
static int init(plugin::Context &context)
28
28
{
29
29
  scheduler= new SingleThreadScheduler("single_thread");
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
 
 
 
30
  context.add(scheduler);
39
31
  return 0;
40
32
}
41
33
 
48
40
  "Single Thread Scheduler",
49
41
  PLUGIN_LICENSE_GPL,
50
42
  init, /* Plugin Init */
51
 
  deinit, /* Plugin Deinit */
52
43
  NULL,   /* system variables */
53
44
  NULL    /* config options */
54
45
}