]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: shm: Convert muto into SRWLOCK and avoid overlocking
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 22 Aug 2022 12:28:11 +0000 (14:28 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 22 Aug 2022 12:28:11 +0000 (14:28 +0200)
commitd6c50e630a3c51ebbab477f452bb8138408c5c2a
treeaae0701b6ac876571f6dd58adcdc15fb83a92395
parent2e03e5a040af42e0bbc5fc019d478889f0b9e9b0
Cygwin: shm: Convert muto into SRWLOCK and avoid overlocking

shmat may call shmget.  shmget locks by itself as necessary,
so there's no reason to keep the lock active and recurse into
the lock.  Use SRWLOCK and only lock  as required.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/shm.cc
This page took 0.025564 seconds and 5 git commands to generate.