(__pthread_alt_timedlock): Add back one of the removed thread_self calls.
authordrepper <drepper>
Tue, 18 Jul 2000 18:34:45 +0000 (18:34 +0000)
committerdrepper <drepper>
Tue, 18 Jul 2000 18:34:45 +0000 (18:34 +0000)
linuxthreads/spinlock.c

index 4ed4203..6cd2679 100644 (file)
@@ -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;