diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-09-15 01:36:08 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-09-15 01:36:08 +0200 |
commit | 2444ce5421c6036a503842d8dd8d93c27aad59ee (patch) | |
tree | 7fbf2fe678b4f2efba8620499952a21d832b4d50 /sysdeps/mach | |
parent | 520a5887057c328c99304d6947453eb06351f5fd (diff) | |
download | glibc-2444ce5421c6036a503842d8dd8d93c27aad59ee.tar.gz glibc-2444ce5421c6036a503842d8dd8d93c27aad59ee.tar.xz glibc-2444ce5421c6036a503842d8dd8d93c27aad59ee.zip |
mach lll_lock/unlock: Explicitly request private locking
0 was actually LLL_PRIVATE, so this does not actually change the code.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/libc-lock.h | 4 |
1 files 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; |