diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-07-26 16:09:10 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-07-26 16:09:10 -0400 |
commit | 8f746280f50dbf07fa831aa27948d00e32ba6e2d (patch) | |
tree | 6709fa5ce5cd624e7fabd04b455657db1a4c8647 /libpthread | |
parent | 8aae3af140c6833c146dce707f9960b1ad79f043 (diff) |
linuxthreads.old: define pthread_yield to sched_yield
The pthread_yield() function in linuxthreads does the same thing as the
standardized sched_yield() function, so add a simple define for it to make
porting GNU apps easier.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/linuxthreads.old/sysdeps/pthread/pthread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h b/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h index 6ef2dbe15..38d566731 100644 --- a/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h +++ b/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h @@ -323,6 +323,11 @@ extern int pthread_getconcurrency (void) __THROW; extern int pthread_setconcurrency (int __level) __THROW; #endif +#ifdef __USE_GNU +/* Same thing, different name */ +#define pthread_yield() sched_yield() +#endif + /* Functions for mutex handling. */ /* Initialize MUTEX using attributes in *MUTEX_ATTR, or use the |