[prev in list] [next in list] [prev in thread] [next in thread] 

List:       glibc-alpha
Subject:    nptl/sysdeps/pthread/bits/libc-lock.h lock typo ?
From:       Dmitry Antipov <antipov () ru ! mvista ! com>
Date:       2007-11-30 15:13:01
Message-ID: 4750287D.7000202 () ru ! mvista ! com
[Download RAW message or body]

Shouldn't it be in such a way instead ?

Dmitry



["non_libc_lock.patch" (text/x-patch)]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic