Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
sched.h
Go to the documentation of this file.
1 
4 #ifndef __SCHED_H__
5 #define __SCHED_H__
6 
7 #include <sys/types.h>
8 #include <time.h>
9 
16 int sched_get_priority_max(int policy);
17 
24 int sched_get_priority_min(int policy);
25 
34 int sched_rr_get_interval(pid_t pid, struct timespec *tp);
35 
40 int sched_yield(void);
41 
42 #endif
Definition: time.h:14
int sched_yield(void)
To cause the calling thread to relinquish the CPU.
Definition: sched.c:30
int sched_rr_get_interval(pid_t pid, struct timespec *tp)
Write the round-robin time quantum of the scheduler into the timespec structure pointed to by tp.
Definition: sched.c:22
int sched_get_priority_min(int policy)
Return the minimum priority of the thread can be set.
Definition: sched.c:17
int sched_get_priority_max(int policy)
Return the maximum priority of the thread can be set.
Definition: sched.c:12