~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/heap/hp_close.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:
26
26
int heap_close(HP_INFO *info)
27
27
{
28
28
  int tmp;
29
 
  pthread_mutex_lock(&THR_LOCK_heap);
 
29
  THR_LOCK_heap.lock();
30
30
  tmp= hp_close(info);
31
 
  pthread_mutex_unlock(&THR_LOCK_heap);
 
31
  THR_LOCK_heap.unlock();
 
32
 
32
33
  return(tmp);
33
34
}
34
35