Merge "Remove unnecessary getpriority() system call" into main

This commit is contained in:
Hans Boehm 2024-09-30 18:21:39 +00:00 committed by Gerrit Code Review
commit 47ec15c928

View file

@ -313,11 +313,6 @@ void androidSetCreateThreadFunc(android_create_thread_fn func)
int androidSetThreadPriority(pid_t tid, int pri)
{
int rc = 0;
int curr_pri = getpriority(PRIO_PROCESS, tid);
if (curr_pri == pri) {
return rc;
}
if (setpriority(PRIO_PROCESS, tid, pri) < 0) {
rc = INVALID_OPERATION;