diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-10-31 22:09:21 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-10-31 22:09:21 +0000 |
commit | f0080f6cf91c89cf77d66f8f7b5589378b7052e9 (patch) | |
tree | c5966d9c91f58192929817ca8b07d7e955e7ff33 | |
parent | 015e8b63f414805a0dc670d43c15a6a352b74079 (diff) | |
download | gcc-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.c | 4 |
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. */ |