Merge "kill HAVE_SCHED_SETSCHEDULER"
This commit is contained in:
@@ -287,7 +287,8 @@ static void android_os_Process_setCanSelfBackground(JNIEnv* env, jobject clazz,
|
||||
void android_os_Process_setThreadScheduler(JNIEnv* env, jclass clazz,
|
||||
jint tid, jint policy, jint pri)
|
||||
{
|
||||
#ifdef HAVE_SCHED_SETSCHEDULER
|
||||
// linux has sched_setscheduler(), others don't.
|
||||
#if defined(__linux__)
|
||||
struct sched_param param;
|
||||
param.sched_priority = pri;
|
||||
int rc = sched_setscheduler(tid, policy, ¶m);
|
||||
|
||||
Reference in New Issue
Block a user