~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/scheduler.cc

  • Committer: Brian Aker
  • Date: 2008-10-15 06:44:44 UTC
  • mfrom: (512.1.21 drizzle-stew)
  • Revision ID: brian@tangent.org-20081015064444-p5ccnpyz558oaquy
Merging Stewart's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
418
418
    later.
419
419
  */
420
420
  char c= 0;
421
 
  write(thd_kill_pipe[1], &c, sizeof(c));
 
421
  assert(write(thd_kill_pipe[1], &c, sizeof(c))==sizeof(c));
422
422
}
423
423
 
424
424
 
597
597
  /* queue for libevent */
598
598
  thds_need_adding= list_add(thds_need_adding, &thd->scheduler.list);
599
599
  /* notify libevent */
600
 
  write(thd_add_pipe[1], &c, sizeof(c));
 
600
  assert(write(thd_add_pipe[1], &c, sizeof(c))==sizeof(c));
601
601
  pthread_mutex_unlock(&LOCK_thd_add);
602
602
}
603
603
 
615
615
  {
616
616
    /* wake up the event loop */
617
617
    char c= 0;
618
 
    write(thd_add_pipe[1], &c, sizeof(c));
 
618
    assert(write(thd_add_pipe[1], &c, sizeof(c))==sizeof(c));
619
619
 
620
620
    pthread_cond_wait(&COND_thread_count, &LOCK_thread_count);
621
621
  }