~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_panic.cc

  • Committer: Brian Aker
  • Date: 2010-08-08 04:21:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1697.
  • Revision ID: brian@gaz-20100808042129-x4we3721ql8lfsje
Update for HEAP to convert its lock to boost.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
int hp_panic(enum ha_panic_function flag)
25
25
{
26
 
  pthread_mutex_lock(&THR_LOCK_heap);
 
26
  THR_LOCK_heap.lock();
27
27
  list<HP_INFO *>::iterator info_it= heap_open_list.begin();
28
28
  while (info_it != heap_open_list.end())
29
29
  {
53
53
    }
54
54
    ++share_it;
55
55
  }
56
 
  pthread_mutex_unlock(&THR_LOCK_heap);
 
56
  THR_LOCK_heap.unlock();
57
57
  return(0);
58
58
} /* hp_panic */