From: Roland McGrath Date: Thu, 5 Dec 2002 20:56:25 +0000 (+0000) Subject: 2002-12-05 Roland McGrath X-Git-Tag: cvs/glibc-2_3_2~630 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=9702f151900e07f422cb2f3b824e70fa2aebce4a;p=glibc.git 2002-12-05 Roland McGrath * sysdeps/unix/sysv/linux/i386/createthread.c (create_thread): Add missing & here too. --- diff --git a/nptl/sysdeps/unix/sysv/linux/i386/createthread.c b/nptl/sysdeps/unix/sysv/linux/i386/createthread.c index 3196a8c754..fc252e185d 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. */