dvr_performance.cpp 441 B

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