From dde762a2b68f132452eefa75c0e6900e173d5412 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Mon, 28 Jan 2002 10:49:11 +0000 Subject: (__pthread_spin_init): Clear *LOCK to 0. 2002-01-28 Andreas Jaeger * sysdeps/mips/pspinlock.c (__pthread_spin_init): Clear *LOCK to 0. Patch by Machida Hiroyuki . * 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/sysdeps/mips/pspinlock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linuxthreads/sysdeps/mips') diff --git a/linuxthreads/sysdeps/mips/pspinlock.c b/linuxthreads/sysdeps/mips/pspinlock.c index ab73d1dd40..8c832ae5f6 100644 --- a/linuxthreads/sysdeps/mips/pspinlock.c +++ b/linuxthreads/sysdeps/mips/pspinlock.c @@ -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) -- cgit v1.2.3