* sysdeps/pthread/pthread_cond_wait.c (__pthread_cond_wait): Add a
	__builtin_expect.
This commit is contained in:
Ulrich Drepper 2004-02-14 07:33:05 +00:00
parent 8203875048
commit b078c5918e
2 changed files with 5 additions and 2 deletions

View File

@ -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.

View File

@ -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;