summary refs log tree commit diff
path: root/linuxthreads
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-18 18:35:20 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-18 18:35:20 +0000
commit70c5b33d9f299675f5369df27b0f42c317344827 (patch)
treec1be08bfdb5000eaaaafd8fc09fa849a92eceb8f /linuxthreads
parent83142e8fe1f329cb2636a851132e9d1eb28a23c3 (diff)
downloadglibc-70c5b33d9f299675f5369df27b0f42c317344827.tar.gz
glibc-70c5b33d9f299675f5369df27b0f42c317344827.tar.xz
glibc-70c5b33d9f299675f5369df27b0f42c317344827.zip
Update.
2000-07-18  Ulrich Drepper  <drepper@redhat.com>

	* spinlock.c (__pthread_alt_timedlock): Add back one of the
	removed thread_self calls.
Diffstat (limited to 'linuxthreads')
-rw-r--r--linuxthreads/ChangeLog5
-rw-r--r--linuxthreads/spinlock.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog
index 62567dad4d..661dfd21bc 100644
--- a/linuxthreads/ChangeLog
+++ b/linuxthreads/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-18  Ulrich Drepper  <drepper@redhat.com>
+
+	* spinlock.c (__pthread_alt_timedlock): Add back one of the
+	removed thread_self calls.
+
 2000-07-18  Kaz Kylheku  <kaz@ashi.footprints.net>
 
 	* spinlock.c (__pthread_alt_lock, __pthread_alt_timedlock): Changed
diff --git a/linuxthreads/spinlock.c b/linuxthreads/spinlock.c
index 4ed4203970..6cd2679d98 100644
--- a/linuxthreads/spinlock.c
+++ b/linuxthreads/spinlock.c
@@ -478,7 +478,8 @@ int __pthread_alt_timedlock(struct _pthread_fastlock * lock,
       newstatus = 1;
     } else {
       if (self == NULL)
-	p_wait_node->thr = self;
+	self = thread_self();
+      p_wait_node->thr = self;
       newstatus = (long) p_wait_node;
     }
     p_wait_node->abandoned = 0;