]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 30 May 2003 03:47:32 +0000 (03:47 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 30 May 2003 03:47:32 +0000 (03:47 +0000)
* sysdeps/unix/sysv/linux/ia64/lowlevellock.h
(__lll_mutex_unlock_force): New function.
(lll_mutex_unlock_force): Use __lll_mutex_unlock_force.

* tst-rwlock7.c (do_test): Use correct format specifier.

nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/ia64/lowlevellock.h
nptl/tst-rwlock7.c

index 0d0573cc0fcbd219b6c731b94968ad1fa37eaeb2..5d22f7f5256f90c941e5cee7a698fa56fa6d379b 100644 (file)
@@ -1,5 +1,11 @@
 2003-05-29  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
+       (__lll_mutex_unlock_force): New function.
+       (lll_mutex_unlock_force): Use __lll_mutex_unlock_force.
+
+       * tst-rwlock7.c (do_test): Use correct format specifier.
+
        * sysdeps/unix/sysv/linux/ia64/lowlevellock.h (lll_futex_requeue):
        Find break parameter in correct asm argument.
 
index fadf5f96ad7817ba894950c339818d4dcf16e4a8..525869b302544085fa54c226271d52b9c8a24314 100644 (file)
@@ -179,8 +179,17 @@ __lll_mutex_unlock (int *futex)
 #define lll_mutex_unlock(futex) \
   __lll_mutex_unlock(&(futex))
 
+
+static inline void
+__attribute__ ((always_inline))
+__lll_mutex_unlock_force (int *futex)
+{
+  (void) atomic_exchange_rel (futex, 0);
+  lll_futex_wake (futex, 1);
+}
 #define lll_mutex_unlock_force(futex) \
-  lll_futex_wake (&(futex), 1)
+  __lll_mutex_unlock_force(&(futex))
+
 
 #define lll_mutex_islocked(futex) \
   (futex != 0)
index 6dd8fef5a732452924c7339eea78cca90c0a5759..1f34c06505294d311bad477f0893a81b94782e93 100644 (file)
@@ -161,7 +161,7 @@ do_test (void)
        }
       if (status != NULL)
        {
-         printf ("failure in round %d\n", cnt);
+         printf ("failure in round %Zu\n", cnt);
          exit (1);
        }