From f5e3efd6013ee104d3310b5910607034c552e4db Mon Sep 17 00:00:00 2001 From: paulo Date: Wed, 16 Dec 2009 15:46:12 +0000 Subject: Fix race condition when threads start. Make memory stats thread safe Run memory commands in cli thread. --- lib/memory.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/memory.h') diff --git a/lib/memory.h b/lib/memory.h index fd9f1b97..09fddf85 100644 --- a/lib/memory.h +++ b/lib/memory.h @@ -85,6 +85,8 @@ extern void mtype_zfree (const char *file, int line, int type, extern char *mtype_zstrdup (const char *file, int line, int type, const char *str); extern void memory_init (void); +extern void memory_init_r (void); +extern void memory_finish (void); extern void log_memstats_stderr (const char *); /* return number of allocations outstanding for the type */ -- cgit v1.2.3