Skip to content

Commit

Permalink
use sched_yield instead of pthread_yield
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyiteng committed Nov 19, 2019
1 parent 1736f8b commit 688bcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/native/jvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ void JVM_SetThreadPriority(JNIEnv *env, jobject thread, jint prio) {
}

void JVM_Yield(JNIEnv *env, jclass threadClass) {
pthread_yield();
sched_yield();
return;
}

Expand Down

0 comments on commit 688bcfd

Please sign in to comment.