~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/scheduler.cc

  • Committer: Brian Aker
  • Date: 2009-01-24 08:35:23 UTC
  • Revision ID: brian@gir-3.local-20090124083523-chsxys2gr79uw47a
Refactor init/deinit into the normal startup structures for a plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  event
34
34
 */
35
35
 
36
 
static bool init_dummy(void) {return 0;}
37
 
static void post_kill_dummy(Session *session __attribute__((unused))) {}
38
 
static void end_dummy(void) {}
39
 
static bool end_thread_dummy(Session *session __attribute__((unused)),
40
 
                             bool cache_thread __attribute__((unused)))
 
36
static void post_kill_dummy(Session *) {}
 
37
static bool end_thread_dummy(Session *, bool)
41
38
{ return 0; }
42
39
 
43
40
/*
46
43
*/
47
44
 
48
45
scheduler_functions::scheduler_functions()
49
 
  :init(init_dummy),
50
 
   init_new_connection_thread(init_new_connection_handler_thread),
 
46
  :init_new_connection_thread(init_new_connection_handler_thread),
51
47
   add_connection(0),                           // Must be defined
52
48
   post_kill_notification(post_kill_dummy),
53
 
   end_thread(end_thread_dummy), end(end_dummy)
 
49
   end_thread(end_thread_dummy)
54
50
{}
55
51