mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 22:40:05 +00:00
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:
parent
520a588705
commit
2444ce5421
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user