mirror of git://gcc.gnu.org/git/gcc.git
syscall: Use sched_yield rather than pthread_yield.
From-SVN: r180716
This commit is contained in:
parent
015e8b63f4
commit
f0080f6cf9
|
@ -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)
|
||||||
void
|
void
|
||||||
runtime_osyield (void)
|
runtime_osyield (void)
|
||||||
{
|
{
|
||||||
pthread_yield ();
|
sched_yield ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sleep for some number of microseconds. */
|
/* Sleep for some number of microseconds. */
|
||||||
|
|
Loading…
Reference in New Issue