Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 715f19d1 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Keep up with API change

androidSetThreadPriority() is going back to only accepting
two arguments, so we switch to the three argument version of
the method.

Test: TreeHugger
Bug: 165009705
Change-Id: If996fdfa19076f72e63a9ffb160715453965c482
parent 96c7e1a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -613,7 +613,7 @@ void android_os_Process_setThreadPriority(JNIEnv* env, jobject clazz,
    }

    // Do not change sched policy cgroup after boot complete.
    rc = androidSetThreadPriority(pid, pri, !boot_completed);
    rc = androidSetThreadPriorityAndPolicy(pid, pri, !boot_completed);
    if (rc != 0) {
        if (rc == INVALID_OPERATION) {
            signalExceptionForPriorityError(env, errno, pid);