1
1

Call lam_malloc_init() / lam_malloc_finalize() during lam_init() and

lam_finalize() to setup / tear down output message streams for malloc
debug messages

This commit was SVN r516.
Этот коммит содержится в:
Jeff Squyres 2004-01-22 00:31:24 +00:00
родитель 45fb45e46f
Коммит 216da2f348
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -6,11 +6,16 @@
#include "lam/constants.h"
#include "lam/runtime/runtime.h"
#include "lam/mem/malloc.h"
#include "lam/util/output.h"
int lam_finalize(void)
{
/* Shut down malloc debug stuff */
lam_malloc_finalize();
/* Shut down the output streams */
lam_output_finalize();

Просмотреть файл

@ -8,6 +8,7 @@
#include "lam/constants.h"
#include "lam/runtime/runtime.h"
#include "lam/mem/malloc.h"
#include "lam/util/output.h"
#include "lam/threads/mutex.h"
@ -46,6 +47,10 @@ int lam_init(int argc, char *argv[])
lam_set_using_threads(false);
/* For malloc debugging */
lam_malloc_init();
/* Other things that we'll probably need:
- session directory setup