[git commit nptl] linuxthreads.old: define pthread_yield to sched_yield
Mike Frysinger
vapier at gentoo.org
Wed Aug 19 11:29:41 UTC 2009
commit: http://git.uclibc.org/uClibc/commit/?id=6f7b5f7d6bb18b40326c2d1484795d0481599d37
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl
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 at gentoo.org>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
.../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 6ef2dbe..38d5667 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
--
1.6.3.3
More information about the uClibc-cvs
mailing list