syscall: Use sched_yield rather than pthread_yield.

From-SVN: r180716
This commit is contained in:
Ian Lance Taylor 2011-10-31 22:09:21 +00:00
parent 015e8b63f4
commit f0080f6cf9
1 changed files with 2 additions and 2 deletions

View File

@ -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. */