summaryrefslogtreecommitdiffstats
path: root/lib/memory.h
diff options
context:
space:
mode:
authorpaulo <paul@bayleaf.org.uk>2009-12-16 15:46:12 +0000
committerpaulo <paul@bayleaf.org.uk>2009-12-16 15:46:12 +0000
commitf5e3efd6013ee104d3310b5910607034c552e4db (patch)
tree1320e0ae2a47a267b5521adf90edfdc912d51281 /lib/memory.h
parentb69a458160a9ab354fb9350f605bd36310786304 (diff)
downloadquagga-f5e3efd6013ee104d3310b5910607034c552e4db.tar.bz2
quagga-f5e3efd6013ee104d3310b5910607034c552e4db.tar.xz
Fix race condition when threads start. Make memory stats thread safe
Run memory commands in cli thread.
Diffstat (limited to 'lib/memory.h')
-rw-r--r--lib/memory.h2
1 files changed, 2 insertions, 0 deletions
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 */