]> sourceware.org Git - glibc.git/commitdiff
(__pthread_spin_init): Clear *LOCK to 0.
authorAndreas Jaeger <aj@suse.de>
Mon, 28 Jan 2002 10:49:11 +0000 (10:49 +0000)
committerAndreas Jaeger <aj@suse.de>
Mon, 28 Jan 2002 10:49:11 +0000 (10:49 +0000)
2002-01-28  Andreas Jaeger  <aj@suse.de>

* sysdeps/mips/pspinlock.c (__pthread_spin_init): Clear *LOCK to
0. Patch by Machida Hiroyuki <machida@sm.sony.co.jp>.

* sysdeps/s390/s390-32/pt-machine.h (MEMORY_BARRIER): Define.
(CURRENT_STACK_FRAME): Remove duplicate definition.
* sysdeps/s390/s390-64/pt-machine.h: Likewise.

linuxthreads/ChangeLog
linuxthreads/sysdeps/mips/pspinlock.c

index a8a98e803127f70a3a38ea2aef59702fe9dad88d..43e192f7c4d106a62fac4dd0adf3585fab1d72b4 100644 (file)
@@ -1,8 +1,13 @@
+2002-01-28  Andreas Jaeger  <aj@suse.de>
+
+       * sysdeps/mips/pspinlock.c (__pthread_spin_init): Clear *LOCK to
+       0. Patch by Machida Hiroyuki <machida@sm.sony.co.jp>.
+
 2002-01-16  Martin Schwidefsky  <schwidefsky@de.ibm.com>
 
-     * sysdeps/s390/s390-32/pt-machine.h (MEMORY_BARRIER): Define.
-     (CURRENT_STACK_FRAME): Remove duplicate definition.
-     * sysdeps/s390/s390-64/pt-machine.h: Likewise.
+       * sysdeps/s390/s390-32/pt-machine.h (MEMORY_BARRIER): Define.
+       (CURRENT_STACK_FRAME): Remove duplicate definition.
+       * sysdeps/s390/s390-64/pt-machine.h: Likewise.
 
 2002-01-14  Martin Schwidefsky  <schwidefsky@de.ibm.com>
 
index ab73d1dd405f21ded9b948389b7a39c9a96ddbca..8c832ae5f6ef54286b6457ceebe864b513c5f371 100644 (file)
@@ -1,5 +1,5 @@
 /* POSIX spinlock implementation.  MIPS version.
-   Copyright (C) 2000 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -92,7 +92,7 @@ __pthread_spin_init (pthread_spinlock_t *lock, int pshared)
   /* We can ignore the `pshared' parameter.  Since we are busy-waiting
      all processes which can access the memory location `lock' points
      to can use the spinlock.  */
-  *lock = 1;
+  *lock = 0;
   return 0;
 }
 weak_alias (__pthread_spin_init, pthread_spin_init)
This page took 0.049881 seconds and 5 git commands to generate.