19 lines
441 B
C++
19 lines
441 B
C++
#include "include/dvr/dvr_performance.h"
|
|
|
|
#include <private/dvr/performance_client.h>
|
|
|
|
using android::dvr::PerformanceClient;
|
|
|
|
extern "C" {
|
|
|
|
int dvrPerformanceSetSchedulerPolicy(pid_t task_id,
|
|
const char* scheduler_policy) {
|
|
int error;
|
|
if (auto client = PerformanceClient::Create(&error))
|
|
return client->SetSchedulerPolicy(task_id, scheduler_policy);
|
|
else
|
|
return error;
|
|
}
|
|
|
|
} // extern "C"
|