From d5ed0118caf96e8b0d9d17e8434efafb8a183629 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 5 Dec 2002 05:15:35 +0000 Subject: * forward.c (pthread_self): Use FORWARD3 macro to correct return type. * sysdeps/i386/td_ta_map_lwp2thr.c: Moved from ../nptl_db. * sysdeps/generic/td_ta_map_lwp2thr.c: New file. * pthread_create.c (start_thread): Add missing & on __nptl_last_event. --- nptl/pthread_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nptl/pthread_create.c') diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index 5fef400ee4..033c0783ea 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -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); } -- cgit v1.2.3