~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memory/hp_panic.cc

  • Committer: Stewart Smith
  • Date: 2010-11-03 03:27:09 UTC
  • mto: (1902.1.1 build) (1910.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1903.
  • Revision ID: stewart@flamingspork.com-20101103032709-oyvfrc6eb8fzj0mr
fix docs warning: docs/unlock.rst:2: (WARNING/2) Title underline too short.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
14
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
15
15
 
16
16
#include "heap_priv.h"
17
17
 
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 */