unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [hurd, commited] mach lll_lock/unlock: Explicitly request private locking
@ 2021-09-14 23:37 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2021-09-14 23:37 UTC (permalink / raw)
  To: libc-alpha; +Cc: commit-hurd

0 was actually LLL_PRIVATE, so this does not actually change the code.
---
 sysdeps/mach/libc-lock.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sysdeps/mach/libc-lock.h b/sysdeps/mach/libc-lock.h
index 220fcee921..07a2bbc8f0 100644
--- a/sysdeps/mach/libc-lock.h
+++ b/sysdeps/mach/libc-lock.h
@@ -71,14 +71,14 @@ typedef struct __libc_lock_recursive_opaque__ __libc_lock_recursive_t;
 
 /* Lock the named lock variable.  */
 #define __libc_lock_lock(NAME)   \
-  ({ lll_lock ((NAME), 0); 0; })
+  ({ lll_lock ((NAME), LLL_PRIVATE); 0; })
 
 /* Lock the named lock variable.  */
 #define __libc_lock_trylock(NAME) lll_trylock (NAME)
 
 /* Unlock the named lock variable.  */
 #define __libc_lock_unlock(NAME)   \
-  ({ lll_unlock ((NAME), 0); 0; })
+  ({ lll_unlock ((NAME), LLL_PRIVATE); 0; })
 
 #define __libc_lock_define_recursive(CLASS,NAME) \
   CLASS __libc_lock_recursive_t NAME;
-- 
2.33.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-14 23:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 23:37 [hurd, commited] mach lll_lock/unlock: Explicitly request private locking Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).