Amazon FreeRTOS: POSIX
返回主页↑
sched.h 文件引用

执行调度。 更多......

转到此文件的源代码。

数据结构体

struct  sched_param
 实现每个受支持调度策略所需的调度参数。 更多……
 

调度策略
#define SCHED_OTHER   0
 

函数

int sched_get_priority_max (int policy)
 获取优先级限制(最大值)。 更多……
 
int sched_get_priority_min (int policy)
 获取优先级限制(最小值)。 更多……
 
int sched_yield (void)
 让出处理器。 更多……
 

详细描述

宏定义文档

◆ SCHED_OTHER

#define SCHED_OTHER   0

另一个调度策略。

函数文档

◆ sched_get_priority_max ()

int schedule_get_priority_max ( int  policy

获取优先级限制(最大值)。

http://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_get_priority_max.html

注意
策略被忽略。
返回
系统配置允许的最大优先级值(基于 0)。
例如,如果 configMAX_PRIORITIES = = 7 ,则此函数返回 (configMAX_PRIORITIES - 1)。configMAX_PRIORITIES 在应用程序的 FreeRTOSConfig.h 文件中配置。

◆ sched_get_priority_min ()

int sched_get_priority_min ( int  policy

获取优先级限制(最小值)。

http://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_get_priority_min.html

注意
策略被忽略。

◆ sched_yield ()

int schedule_yield ( void