Amazon FreeRTOS: POSIX
Return to main page ↑
sched.h File Reference

Execution scheduling. More...

Go to the source code of this file.

Data Structures

struct  sched_param
 Scheduling parameters required for implementation of each supported scheduling policy. More...


Scheduling Policies
#define SCHED_OTHER   0


int sched_get_priority_max (int policy)
 Get priority limit (max). More...
int sched_get_priority_min (int policy)
 Get priority limit (min). More...
int sched_yield (void)
 Yield the processor. More...

Detailed Description

Macro Definition Documentation


#define SCHED_OTHER   0

Another scheduling policy.

Function Documentation

◆ sched_get_priority_max()

int sched_get_priority_max ( int  policy)

Get priority limit (max).

policy is ignored.
the maximum priority value (0-based) system configuration allows.
e.g. if configMAX_PRIORITIES == 7, this function returns (configMAX_PRIORITIES - 1). configMAX_PRIORITIES is configured in application FreeRTOSConfig.h file.

◆ sched_get_priority_min()

int sched_get_priority_min ( int  policy)

◆ sched_yield()

int sched_yield ( void  )

Yield the processor.

Return values
0- Upon successful completion