~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pool_of_threads/pool_of_threads.cc

  • Committer: Brian Aker
  • Date: 2010-09-14 06:43:02 UTC
  • mto: (1766.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1767.
  • Revision ID: brian@tangent.org-20100914064302-hj3ex2ea4km7ix0v
Remove dead/bad calls for scheduler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
484
484
  : Scheduler(name_arg), sessions_need_adding(), sessions_to_be_killed(),
485
485
    sessions_need_processing(), sessions_waiting_for_io()
486
486
{
487
 
  struct sched_param tmp_sched_param;
488
 
 
489
 
  memset(&tmp_sched_param, 0, sizeof(struct sched_param));
490
487
  /* Setup attribute parameter for session threads. */
491
488
  (void) pthread_attr_init(&attr);
492
489
  (void) pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
493
490
  pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
494
491
 
495
 
  tmp_sched_param.sched_priority= WAIT_PRIOR;
496
 
  (void) pthread_attr_setschedparam(&attr, &tmp_sched_param);
497
 
 
498
492
  pthread_mutex_init(&LOCK_session_add, NULL);
499
493
  pthread_mutex_init(&LOCK_session_kill, NULL);
500
494
  pthread_mutex_init(&LOCK_event_loop, NULL);