Fix androidGetThreadPriority for non-pthread configurations.

related-to-build

Change-Id: Ic865af0865906f96fd615a56a030c8e3adaf13c4
This commit is contained in:
Andreas Huber 2011-09-16 11:47:13 -07:00
parent 50c258b945
commit 9dbb77d04b

View File

@ -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)