Fix androidGetThreadPriority for non-pthread configurations.
related-to-build Change-Id: Ic865af0865906f96fd615a56a030c8e3adaf13c4
This commit is contained in:
@@ -369,7 +369,11 @@ int androidSetThreadPriority(pid_t tid, int pri)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int androidGetThreadPriority(pid_t tid) {
|
int androidGetThreadPriority(pid_t tid) {
|
||||||
|
#if defined(HAVE_PTHREADS)
|
||||||
return getpriority(PRIO_PROCESS, tid);
|
return getpriority(PRIO_PROCESS, tid);
|
||||||
|
#else
|
||||||
|
return ANDROID_PRIORITY_NORMAL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int androidGetThreadSchedulingGroup(pid_t tid)
|
int androidGetThreadSchedulingGroup(pid_t tid)
|
||||||
|
|||||||
Reference in New Issue
Block a user