aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-10-31 22:09:21 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-10-31 22:09:21 +0000
commitf0080f6cf91c89cf77d66f8f7b5589378b7052e9 (patch)
treec5966d9c91f58192929817ca8b07d7e955e7ff33
parent015e8b63f414805a0dc670d43c15a6a352b74079 (diff)
downloadgcc-f0080f6cf91c89cf77d66f8f7b5589378b7052e9.zip
gcc-f0080f6cf91c89cf77d66f8f7b5589378b7052e9.tar.gz
gcc-f0080f6cf91c89cf77d66f8f7b5589378b7052e9.tar.bz2
syscall: Use sched_yield rather than pthread_yield.
From-SVN: r180716
-rw-r--r--libgo/runtime/yield.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/yield.c b/libgo/runtime/yield.c
index 3ebc4a4..4c2204d 100644
--- a/libgo/runtime/yield.c
+++ b/libgo/runtime/yield.c
@@ -9,7 +9,7 @@
#include <stddef.h>
#include <sys/types.h>
#include <sys/time.h>
-#include <pthread.h>
+#include <sched.h>
#include <unistd.h>
#ifdef HAVE_SYS_SELECT_H
@@ -38,7 +38,7 @@ runtime_procyield (uint32 cnt)
void
runtime_osyield (void)
{
- pthread_yield ();
+ sched_yield ();
}
/* Sleep for some number of microseconds. */