From 9702f151900e07f422cb2f3b824e70fa2aebce4a Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 5 Dec 2002 20:56:25 +0000 Subject: 2002-12-05 Roland McGrath * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add missing & here too. --- nptl/sysdeps/unix/sysv/linux/i386/createthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nptl/sysdeps/unix/sysv/linux/i386/createthread.c b/nptl/sysdeps/unix/sysv/linux/i386/createthread.c index 3196a8c..fc252e1 100644 --- a/nptl/sysdeps/unix/sysv/linux/i386/createthread.c +++ b/nptl/sysdeps/unix/sysv/linux/i386/createthread.c @@ -92,7 +92,7 @@ create_thread (struct pthread *pd, STACK_VARIABLES_PARMS) /* Enqueue the descriptor. */ do pd->nextevent = __nptl_last_event; - while (atomic_compare_and_exchange_acq (__nptl_last_event, pd, + while (atomic_compare_and_exchange_acq (&__nptl_last_event, pd, pd->nextevent) != 0); /* Now call the function which signals the event. */ -- cgit v1.1