Commit f0080f6c by Ian Lance Taylor

syscall: Use sched_yield rather than pthread_yield.

From-SVN: r180716
parent 015e8b63
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <stddef.h> #include <stddef.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/time.h> #include <sys/time.h>
#include <pthread.h> #include <sched.h>
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_SYS_SELECT_H #ifdef HAVE_SYS_SELECT_H
...@@ -38,7 +38,7 @@ runtime_procyield (uint32 cnt) ...@@ -38,7 +38,7 @@ runtime_procyield (uint32 cnt)
void void
runtime_osyield (void) runtime_osyield (void)
{ {
pthread_yield (); sched_yield ();
} }
/* Sleep for some number of microseconds. */ /* Sleep for some number of microseconds. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment