Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2022-08-10 17:56:07 +0300
committerCorinna Vinschen <corinna@vinschen.de>2022-08-10 19:05:12 +0300
commit86d2126173b8374163b1de1bb723283345b128cc (patch)
tree6cc46528595b242e35aed7ae6cdb15350bb46b42 /winsup
parentafa71179992e704734ff8aa5da1a3e02b8cdcd27 (diff)
Cygwin: mm/malloc_wrapper.cc: fix a comment
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/mm/malloc_wrapper.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/winsup/cygwin/mm/malloc_wrapper.cc b/winsup/cygwin/mm/malloc_wrapper.cc
index 8d12eb637..de3cf7ddc 100644
--- a/winsup/cygwin/mm/malloc_wrapper.cc
+++ b/winsup/cygwin/mm/malloc_wrapper.cc
@@ -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;