• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "include/dvr/dvr_performance.h"
2 
3 #include <private/dvr/performance_client.h>
4 
5 using android::dvr::PerformanceClient;
6 
7 extern "C" {
8 
dvrPerformanceSetSchedulerPolicy(pid_t task_id,const char * scheduler_policy)9 int dvrPerformanceSetSchedulerPolicy(pid_t task_id,
10                                      const char* scheduler_policy) {
11   int error;
12   if (auto client = PerformanceClient::Create(&error))
13     return client->SetSchedulerPolicy(task_id, scheduler_policy);
14   else
15     return error;
16 }
17 
18 }  // extern "C"
19