Loading core/jni/android_util_Process.cpp +2 −1 Original line number Original line Diff line number Diff line Loading @@ -287,7 +287,8 @@ static void android_os_Process_setCanSelfBackground(JNIEnv* env, jobject clazz, void android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz, void android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz, jint tid, jint policy, jint pri) jint tid, jint policy, jint pri) { { #ifdef HAVE_SCHED_SETSCHEDULER // linux has sched_setscheduler(), others don't. #if defined(__linux__) struct sched_param param; struct sched_param param; param.sched_priority = pri; param.sched_priority = pri; int rc = sched_setscheduler(tid, policy, ¶m); int rc = sched_setscheduler(tid, policy, ¶m); Loading Loading
core/jni/android_util_Process.cpp +2 −1 Original line number Original line Diff line number Diff line Loading @@ -287,7 +287,8 @@ static void android_os_Process_setCanSelfBackground(JNIEnv* env, jobject clazz, void android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz, void android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz, jint tid, jint policy, jint pri) jint tid, jint policy, jint pri) { { #ifdef HAVE_SCHED_SETSCHEDULER // linux has sched_setscheduler(), others don't. #if defined(__linux__) struct sched_param param; struct sched_param param; param.sched_priority = pri; param.sched_priority = pri; int rc = sched_setscheduler(tid, policy, ¶m); int rc = sched_setscheduler(tid, policy, ¶m); Loading