~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/thr_lock.cc

  • Committer: Eric Day
  • Date: 2009-08-31 23:50:37 UTC
  • mto: This revision was merged to the branch mainline in revision 1134.
  • Revision ID: eday@oddments.org-20090831235037-hwwe6zhq94o4lxtd
Removed purecov messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
231
231
    }
232
232
    if (rc == ETIMEDOUT || rc == ETIME)
233
233
    {
234
 
      /* purecov: begin inspected */
235
234
      result= THR_LOCK_WAIT_TIMEOUT;
236
235
      break;
237
 
      /* purecov: end */
238
236
    }
239
237
  }
240
238
  if (data->cond || data->type == TL_UNLOCK)
779
777
  pthread_mutex_lock(&lock->mutex);
780
778
  for (data= lock->read_wait.data; data ; data= data->next)
781
779
  {
782
 
    if (data->owner->info->thread_id == thread_id)    /* purecov: tested */
 
780
    if (data->owner->info->thread_id == thread_id)
783
781
    {
784
782
      data->type= TL_UNLOCK;                    /* Mark killed */
785
783
      /* It's safe to signal the cond first: we're still holding the mutex. */
795
793
  }
796
794
  for (data= lock->write_wait.data; data ; data= data->next)
797
795
  {
798
 
    if (data->owner->info->thread_id == thread_id) /* purecov: tested */
 
796
    if (data->owner->info->thread_id == thread_id)
799
797
    {
800
798
      data->type= TL_UNLOCK;
801
799
      found= true;