~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/scheduler.cc

  • Committer: Monty Taylor
  • Date: 2008-10-16 06:33:57 UTC
  • mfrom: (511.2.2 more-warnings)
  • mto: This revision was merged to the branch mainline in revision 521.
  • Revision ID: monty@inaugust.com-20081016063357-vz18dqzdxh2l4nni
Merged in more warnings again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
425
425
    later.
426
426
  */
427
427
  char c= 0;
428
 
  write(thd_kill_pipe[1], &c, sizeof(c));
 
428
  assert(write(thd_kill_pipe[1], &c, sizeof(c))==sizeof(c));
429
429
}
430
430
 
431
431
 
604
604
  /* queue for libevent */
605
605
  thds_need_adding= list_add(thds_need_adding, &thd->scheduler.list);
606
606
  /* notify libevent */
607
 
  write(thd_add_pipe[1], &c, sizeof(c));
 
607
  assert(write(thd_add_pipe[1], &c, sizeof(c))==sizeof(c));
608
608
  pthread_mutex_unlock(&LOCK_thd_add);
609
609
}
610
610
 
622
622
  {
623
623
    /* wake up the event loop */
624
624
    char c= 0;
625
 
    write(thd_add_pipe[1], &c, sizeof(c));
 
625
    assert(write(thd_add_pipe[1], &c, sizeof(c))==sizeof(c));
626
626
 
627
627
    pthread_cond_wait(&COND_thread_count, &LOCK_thread_count);
628
628
  }