diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-02-14 07:33:05 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-02-14 07:33:05 +0000 |
commit | b078c5918eefc410f73a5417600f47eefad0575c (patch) | |
tree | 81d3822534cdde9d76aa8d36285250e1289eb002 | |
parent | 820387504835e39279fef36cfb0a832da32f6b13 (diff) | |
download | glibc-b078c5918eefc410f73a5417600f47eefad0575c.tar.gz glibc-b078c5918eefc410f73a5417600f47eefad0575c.tar.xz glibc-b078c5918eefc410f73a5417600f47eefad0575c.zip |
Update.
* sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a __builtin_expect.
-rw-r--r-- | nptl/ChangeLog | 3 | ||||
-rw-r--r-- | nptl/sysdeps/pthread/pthread_cond_wait.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog index d1d9fc1025..b610b7f327 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,5 +1,8 @@ 2004-02-13 Ulrich Drepper <drepper@redhat.com> + * sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a + __builtin_expect. + * sysdeps/generic/pt-longjmp.c: Moved to... * sysdeps/pthread/pt-longjmp.c: ...here. New file. diff --git a/nptl/sysdeps/pthread/pthread_cond_wait.c b/nptl/sysdeps/pthread/pthread_cond_wait.c index 79c6d9951c..4435ef81f8 100644 --- a/nptl/sysdeps/pthread/pthread_cond_wait.c +++ b/nptl/sysdeps/pthread/pthread_cond_wait.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2003 Free Software Foundation, Inc. +/* Copyright (C) 2003, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Martin Schwidefsky <schwidefsky@de.ibm.com>, 2003. @@ -83,7 +83,7 @@ __pthread_cond_wait (cond, mutex) /* Now we can release the mutex. */ err = __pthread_mutex_unlock_usercnt (mutex, 0); - if (err) + if (__builtin_expect (err, 0)) { lll_mutex_unlock (cond->__data.__lock); return err; |