diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-02-18 10:59:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-02-18 10:59:20 +0000 |
commit | 729924a042266022cc469501d01b33f0f9ae4bfc (patch) | |
tree | 3f126578aaeded27587803838c29ca14210c4c4d /nptl/pthread_create.c | |
parent | 8bd3f1844a9912b6ca08ef4bc47b1e3e2ef21029 (diff) | |
download | glibc-729924a042266022cc469501d01b33f0f9ae4bfc.tar.gz glibc-729924a042266022cc469501d01b33f0f9ae4bfc.tar.xz glibc-729924a042266022cc469501d01b33f0f9ae4bfc.zip |
Update.
2003-02-18 Ulrich Drepper <drepper@redhat.com> * pthreadP.h: Define dummy versio of DEBUGGING_P.
Diffstat (limited to 'nptl/pthread_create.c')
-rw-r--r-- | nptl/pthread_create.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |