~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-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

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;