diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-09-27 07:59:26 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2013-09-27 07:59:26 +0530 |
commit | c8886d0abff2b2b16870751fc2101d4f3744a406 (patch) | |
tree | c1aefaa19a47659a581846ee8d0497638f087e16 /nptl/sysdeps/pthread | |
parent | f4518a17e3c7417b8cbff9634f51b7a99d433c92 (diff) | |
download | glibc-c8886d0abff2b2b16870751fc2101d4f3744a406.tar.gz glibc-c8886d0abff2b2b16870751fc2101d4f3744a406.tar.xz glibc-c8886d0abff2b2b16870751fc2101d4f3744a406.zip |
Use the mutex member of the argumen in __libc_lock_*_recursive
Diffstat (limited to 'nptl/sysdeps/pthread')
-rw-r--r-- | nptl/sysdeps/pthread/bits/libc-lock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nptl/sysdeps/pthread/bits/libc-lock.h b/nptl/sysdeps/pthread/bits/libc-lock.h index b46bca9261..0b95ab7404 100644 --- a/nptl/sysdeps/pthread/bits/libc-lock.h +++ b/nptl/sysdeps/pthread/bits/libc-lock.h @@ -87,7 +87,7 @@ typedef struct __libc_lock_recursive_opaque__ __libc_lock_recursive_t; # define __libc_lock_fini_recursive(NAME) ((void) 0) #else # define __libc_lock_fini_recursive(NAME) \ - __libc_maybe_call (__pthread_mutex_destroy, (&(NAME)), 0) + __libc_maybe_call (__pthread_mutex_destroy, (&(NAME).mutex), 0) #endif /* Lock the recursive named lock variable. */ @@ -129,7 +129,7 @@ typedef struct __libc_lock_recursive_opaque__ __libc_lock_recursive_t; }) #else # define __libc_lock_trylock_recursive(NAME) \ - __libc_maybe_call (__pthread_mutex_trylock, (&(NAME)), 0) + __libc_maybe_call (__pthread_mutex_trylock, (&(NAME).mutex), 0) #endif /* Unlock the recursive named lock variable. */ @@ -145,7 +145,7 @@ typedef struct __libc_lock_recursive_opaque__ __libc_lock_recursive_t; } while (0) #else # define __libc_lock_unlock_recursive(NAME) \ - __libc_maybe_call (__pthread_mutex_unlock, (&(NAME)), 0) + __libc_maybe_call (__pthread_mutex_unlock, (&(NAME).mutex), 0) #endif /* Note that for I/O cleanup handling we are using the old-style |