From f0080f6cf91c89cf77d66f8f7b5589378b7052e9 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 31 Oct 2011 22:09:21 +0000 Subject: [PATCH] syscall: Use sched_yield rather than pthread_yield. From-SVN: r180716 --- libgo/runtime/yield.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgo/runtime/yield.c b/libgo/runtime/yield.c index 3ebc4a45f992..4c2204d35380 100644 --- a/libgo/runtime/yield.c +++ b/libgo/runtime/yield.c @@ -9,7 +9,7 @@ #include #include #include -#include +#include #include #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. */ -- 2.47.2