svn commit: trunk/uClibc/libpthread: linuxthreads linuxthreads/sysdeps/pthrea etc...

vapier at uclibc.org vapier at uclibc.org
Sun Mar 5 04:31:18 UTC 2006


Author: vapier
Date: 2006-03-04 20:31:16 -0800 (Sat, 04 Mar 2006)
New Revision: 14449

Log:
use sched_yield, not pthread_yield

Modified:
   trunk/uClibc/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h
   trunk/uClibc/libpthread/linuxthreads/internals.h
   trunk/uClibc/libpthread/linuxthreads/pthread.c
   trunk/uClibc/libpthread/linuxthreads/sysdeps/pthread/pthread.h


Changeset:
Modified: trunk/uClibc/libpthread/linuxthreads/internals.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads/internals.h	2006-03-04 22:40:25 UTC (rev 14448)
+++ trunk/uClibc/libpthread/linuxthreads/internals.h	2006-03-05 04:31:16 UTC (rev 14449)
@@ -392,8 +392,6 @@
 
 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);

Modified: trunk/uClibc/libpthread/linuxthreads/pthread.c
===================================================================
--- trunk/uClibc/libpthread/linuxthreads/pthread.c	2006-03-04 22:40:25 UTC (rev 14448)
+++ trunk/uClibc/libpthread/linuxthreads/pthread.c	2006-03-05 04:31:16 UTC (rev 14449)
@@ -959,13 +959,6 @@
 }
 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)

Modified: trunk/uClibc/libpthread/linuxthreads/sysdeps/pthread/pthread.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads/sysdeps/pthread/pthread.h	2006-03-04 22:40:25 UTC (rev 14448)
+++ trunk/uClibc/libpthread/linuxthreads/sysdeps/pthread/pthread.h	2006-03-05 04:31:16 UTC (rev 14449)
@@ -320,14 +320,6 @@
 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

Modified: trunk/uClibc/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h
===================================================================
--- trunk/uClibc/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h	2006-03-04 22:40:25 UTC (rev 14448)
+++ trunk/uClibc/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h	2006-03-05 04:31:16 UTC (rev 14449)
@@ -324,18 +324,6 @@
 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




More information about the uClibc-cvs mailing list