This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
nptl/sysdeps/pthread/bits/libc-lock.h lock typo ?
- From: Dmitry Antipov <antipov at ru dot mvista dot com>
- To: GNU libc devel <libc-alpha at sources dot redhat dot com>
- Cc: Khem Raj <kraj at mvista dot com>
- Date: Fri, 30 Nov 2007 18:13:01 +0300
- Subject: nptl/sysdeps/pthread/bits/libc-lock.h lock typo ?
Shouldn't it be in such a way instead ?
Dmitry
Index: nptl/sysdeps/pthread/bits/libc-lock.h
===================================================================
RCS file: /cvs/glibc/libc/nptl/sysdeps/pthread/bits/libc-lock.h,v
retrieving revision 1.23
diff -u -r1.23 libc-lock.h
--- nptl/sysdeps/pthread/bits/libc-lock.h 10 Oct 2007 15:59:42 -0000 1.23
+++ nptl/sysdeps/pthread/bits/libc-lock.h 30 Nov 2007 15:07:26 -0000
@@ -301,7 +301,7 @@
})
#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
#define __rtld_lock_trylock_recursive(NAME) \
@@ -331,7 +331,7 @@
} 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
#if defined _LIBC && defined SHARED