mach lll_lock/unlock: Explicitly request private locking

0 was actually LLL_PRIVATE, so this does not actually change the code.
This commit is contained in:
Samuel Thibault 2021-09-15 01:36:08 +02:00
parent 520a588705
commit 2444ce5421

View File

@ -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;