From 729924a042266022cc469501d01b33f0f9ae4bfc Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 18 Feb 2003 10:59:20 +0000 Subject: Update. 2003-02-18 Ulrich Drepper * pthreadP.h: Define dummy versio of DEBUGGING_P. --- nptl/pthread_create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nptl/pthread_create.c') diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index 6a590904d4..172f002d9b 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -226,7 +226,7 @@ start_thread (void *arg) /* If this is the last thread we terminate the process now. We do not notify the debugger, it might just irritate it if there is no thread left. */ - if (atomic_decrement_and_test (&__nptl_nthreads)) + if (__builtin_expect (atomic_decrement_and_test (&__nptl_nthreads), 0)) /* This was the last thread. */ exit (0); @@ -328,7 +328,7 @@ __pthread_create_2_1 (newthread, attr, start_routine, arg) iattr = &default_attr; err = ALLOCATE_STACK (iattr, &pd); - if (err != 0) + if (__builtin_expect (err != 0, 0)) /* Something went wrong. Maybe a parameter of the attributes is invalid or we could not allocate memory. */ return err; -- cgit v1.2.1