Home | History | Annotate | Download | only in dvr
      1 #ifndef ANDROID_DVR_PERFORMANCE_H_
      2 #define ANDROID_DVR_PERFORMANCE_H_
      3 
      4 #include <stddef.h>
      5 #include <unistd.h>
      6 
      7 __BEGIN_DECLS
      8 
      9 /// Sets the scheduler policy for a task.
     10 ///
     11 /// Sets the scheduler policy for a task to the class described by a semantic
     12 /// string.
     13 ///
     14 /// Supported policies are device-specific.
     15 ///
     16 /// @param task_id The task id of task to set the policy for. When task_id is 0
     17 /// the current task id is substituted.
     18 /// @param scheduler_policy NULL-terminated ASCII string containing the desired
     19 /// scheduler policy.
     20 /// @returns Returns 0 on success or a negative errno error code on error.
     21 int dvrPerformanceSetSchedulerPolicy(pid_t task_id, const char* scheduler_policy);
     22 
     23 __END_DECLS
     24 
     25 #endif  // ANDROID_DVR_PERFORMANCE_H_
     26 
     27