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

Commit 9dbb77d0 authored by Andreas Huber's avatar Andreas Huber
Browse files

Fix androidGetThreadPriority for non-pthread configurations.

related-to-build

Change-Id: Ic865af0865906f96fd615a56a030c8e3adaf13c4
parent 50c258b9
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -369,7 +369,11 @@ int androidSetThreadPriority(pid_t tid, int pri)
}

int androidGetThreadPriority(pid_t tid) {
#if defined(HAVE_PTHREADS)
    return getpriority(PRIO_PROCESS, tid);
#else
    return ANDROID_PRIORITY_NORMAL;
#endif
}

int androidGetThreadSchedulingGroup(pid_t tid)