From 246192008bf450a7098af436a02dcfdfd88b7ea9 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 19 Jul 2002 04:26:41 +0000 Subject: Rename mutex stuff to use heap-specific names. Doc fix. --- libc/stdlib/malloc/heap_free.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/stdlib/malloc/heap_free.c') diff --git a/libc/stdlib/malloc/heap_free.c b/libc/stdlib/malloc/heap_free.c index 20ef65572..d8eaf7e66 100644 --- a/libc/stdlib/malloc/heap_free.c +++ b/libc/stdlib/malloc/heap_free.c @@ -1,5 +1,5 @@ /* - * libc/stdlib/malloc-zarg/heap_free.c -- return memory to a heap + * libc/stdlib/malloc/heap_free.c -- return memory to a heap * * Copyright (C) 2002 NEC Corporation * Copyright (C) 2002 Miles Bader @@ -23,7 +23,7 @@ __heap_free (struct heap *heap, void *mem, size_t size) struct heap_free_area *prev_fa, *fa, *new_fa; void *end = (char *)mem + size; - mutex_lock (heap->lock); + __heap_lock (heap); HEAP_DEBUG (heap, "before __heap_free"); @@ -123,5 +123,5 @@ __heap_free (struct heap *heap, void *mem, size_t size) done: HEAP_DEBUG (heap, "after __heap_free"); - mutex_unlock (heap->lock); + __heap_unlock (heap); } -- cgit v1.2.3