diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-03-05 04:31:16 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-03-05 04:31:16 +0000 |
commit | da7412ee0e0dd260c3969f90bd498e229c075196 (patch) | |
tree | 5966077f5709e7038a281928a2b7d3c5eabf7b0f /libpthread | |
parent | 574ed4228838b8861cfc93c8ae890b9bbe8965f7 (diff) |
use sched_yield, not pthread_yield
Diffstat (limited to 'libpthread')
-rw-r--r-- | libpthread/linuxthreads.old/sysdeps/pthread/pthread.h | 12 | ||||
-rw-r--r-- | libpthread/linuxthreads/internals.h | 2 | ||||
-rw-r--r-- | libpthread/linuxthreads/pthread.c | 7 | ||||
-rw-r--r-- | libpthread/linuxthreads/sysdeps/pthread/pthread.h | 8 |
4 files changed, 0 insertions, 29 deletions
diff --git a/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h b/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h index 8cd75c200..0cee6a84f 100644 --- a/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h +++ b/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h @@ -324,18 +324,6 @@ extern int pthread_getconcurrency (void) __THROW; extern int pthread_setconcurrency (int __level) __THROW; #endif -#if 0 -/* Not yet implemented in uClibc! */ - -#ifdef __USE_GNU -/* Yield the processor to another thread or process. - This function is similar to the POSIX `sched_yield' function but - might be differently implemented in the case of a m-on-n thread - implementation. */ -extern int pthread_yield (void) __THROW; -#endif -#endif - /* Functions for mutex handling. */ /* Initialize MUTEX using attributes in *MUTEX_ATTR, or use the diff --git a/libpthread/linuxthreads/internals.h b/libpthread/linuxthreads/internals.h index 9be272fe7..c8e4262d6 100644 --- a/libpthread/linuxthreads/internals.h +++ b/libpthread/linuxthreads/internals.h @@ -392,8 +392,6 @@ extern void __pthread_wait_for_restart_signal(pthread_descr self); extern void __pthread_sigsuspend (const sigset_t *mask) attribute_hidden; -extern int __pthread_yield (void); - extern int __pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock, __const struct timespec *__restrict __abstime); diff --git a/libpthread/linuxthreads/pthread.c b/libpthread/linuxthreads/pthread.c index 202dbc7b8..dac7ab1b0 100644 --- a/libpthread/linuxthreads/pthread.c +++ b/libpthread/linuxthreads/pthread.c @@ -959,13 +959,6 @@ int __pthread_getschedparam(pthread_t thread, int *policy, } strong_alias (__pthread_getschedparam, pthread_getschedparam); -int __pthread_yield (void) -{ - /* For now this is equivalent with the POSIX call. */ - return sched_yield (); -} -weak_alias (__pthread_yield, pthread_yield) - /* Process-wide exit() request */ static void pthread_onexit_process(int retcode, void *arg) diff --git a/libpthread/linuxthreads/sysdeps/pthread/pthread.h b/libpthread/linuxthreads/sysdeps/pthread/pthread.h index 0dacfed1c..b60f74b3f 100644 --- a/libpthread/linuxthreads/sysdeps/pthread/pthread.h +++ b/libpthread/linuxthreads/sysdeps/pthread/pthread.h @@ -320,14 +320,6 @@ extern int pthread_getconcurrency (void) __THROW; extern int pthread_setconcurrency (int __level) __THROW; #endif -#ifdef __USE_GNU -/* Yield the processor to another thread or process. - This function is similar to the POSIX `sched_yield' function but - might be differently implemented in the case of a m-on-n thread - implementation. */ -extern int pthread_yield (void) __THROW; -#endif - /* Functions for mutex handling. */ /* Initialize MUTEX using attributes in *MUTEX_ATTR, or use the |