Fix androidGetThreadPriority for non-pthread configurations.
related-to-build Change-Id: Ic865af0865906f96fd615a56a030c8e3adaf13c4
This commit is contained in:
parent
50c258b945
commit
9dbb77d04b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user