4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-18 23:12:15 +08:00

Cygwin: mm/malloc_wrapper.cc: fix a comment

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2022-08-10 16:56:07 +02:00
parent afa7117999
commit 86d2126173

View File

@ -298,12 +298,11 @@ strdup (const char *s)
return p;
}
/* We use a critical section to lock access to the malloc data
structures. This permits malloc to be called from different
threads. Note that it does not make malloc reentrant, and it does
not permit a signal handler to call malloc. The malloc code in
newlib will call __malloc_lock and __malloc_unlock at appropriate
times. */
/* We use a SRW lock to lock access to the malloc data structures. This
permits malloc to be called from different threads. Note that it does
not make malloc reentrant, and it does not permit a signal handler to
call malloc. The malloc code in newlib will call __malloc_lock and
__malloc_unlock at appropriate times. */
SRWLOCK NO_COPY mallock = SRWLOCK_INIT;