implement JVM_Yield

This commit is contained in:
Joel Dice 2010-09-17 16:10:01 -06:00
parent 7fffba29e6
commit a0a23b4692

View File

@ -43,6 +43,7 @@
# include <sys/socket.h>
# include <fcntl.h>
# include <errno.h>
# include <sched.h>
# define OPEN open
# define CLOSE close
@ -1240,7 +1241,10 @@ JVM_SetThreadPriority(Thread*, jobject, jint)
}
extern "C" JNIEXPORT void JNICALL
JVM_Yield(Thread*, jclass) { abort(); }
JVM_Yield(Thread*, jclass)
{
sched_yield();
}
extern "C" JNIEXPORT void JNICALL
JVM_Sleep(Thread* t, jclass, jlong milliseconds)