]> sourceware.org Git - glibc.git/commitdiff
* sysdeps/unix/sysv/linux/alpha/lowlevellock.h
authorJakub Jelinek <jakub@redhat.com>
Thu, 16 Aug 2007 21:03:08 +0000 (21:03 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 16 Aug 2007 21:03:08 +0000 (21:03 +0000)
(__lll_robust_timedlock): Pass private as last argument to
__lll_robust_timedlock_wait.
(__lll_unlock): Fix a pasto.

sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h

index 4487607bb3dab9a03176a63b7a73c45f4142f870..9fa321cb3f1f3ba0a4aa0a7a1eb0d4e0af6b12d8 100644 (file)
@@ -219,7 +219,7 @@ __lll_robust_timedlock (int *futex, const struct timespec *abstime,
 {
   int result = 0;
   if (atomic_compare_and_exchange_bool_acq (futex, id, 0) != 0)
-    result = __lll_robust_timedlock_wait (futex, abstime);
+    result = __lll_robust_timedlock_wait (futex, abstime, private);
   return result;
 }
 #define lll_robust_timedlock(futex, abstime, id, private) \
@@ -229,7 +229,7 @@ __lll_robust_timedlock (int *futex, const struct timespec *abstime,
 #define __lll_unlock(futex, private) \
   (void)                                                       \
     ({ int *__futex = (futex);                                 \
-    ({ int __oldval = atomic_exchange_rel (__futex, 0);                \
+       int __oldval = atomic_exchange_rel (__futex, 0);                \
        if (__builtin_expect (__oldval > 1, 0))                 \
         lll_futex_wake (__futex, 1, private);                  \
     })
This page took 0.048706 seconds and 5 git commands to generate.