2002-12-04 Roland McGrath <roland@redhat.com>
authorroland <roland>
Thu, 5 Dec 2002 03:46:22 +0000 (03:46 +0000)
committerroland <roland>
Thu, 5 Dec 2002 03:46:22 +0000 (03:46 +0000)
* pthread_create.c (start_thread): Add missing & on __nptl_last_event.

nptl/pthread_create.c

index 5fef400..033c078 100644 (file)
@@ -233,7 +233,7 @@ start_thread (void *arg)
 
              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);
            }