~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pool_of_threads/pool_of_threads.cc

  • Committer: Monty Taylor
  • Date: 2009-03-21 19:11:38 UTC
  • mto: (960.2.1 mordred)
  • mto: This revision was merged to the branch mainline in revision 961.
  • Revision ID: mordred@inaugust.com-20090321191138-c1k0z3i0lp1yng8p
Cleaned up pool_of_threads scheduler just a bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
591
591
 
592
592
static int init(void *p)
593
593
{
594
 
printf("We're in pool_of_threads init mothafucka!\n");
595
 
  Pool_of_threads_scheduler **sched=
596
 
    static_cast<Pool_of_threads_scheduler **>(p);
597
 
 
598
594
  assert(size != 0);
599
 
  *sched= new Pool_of_threads_scheduler(size);
600
 
 
601
 
  return (int)(*sched)->libevent_init();
 
595
 
 
596
  void **plugin= static_cast<void **>(p);
 
597
 
 
598
  Pool_of_threads_scheduler *sched=
 
599
    new Pool_of_threads_scheduler(size);
 
600
  if (sched->libevent_init())
 
601
  {
 
602
    delete sched;
 
603
    return 1;
 
604
  }
 
605
 
 
606
  *plugin= static_cast<void *>(sched);
 
607
 
 
608
  return 0;
602
609
}
603
610
 
604
611
/**