AWS IoT FreeRTOS+POSIX
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...
 

Macros

Scheduling Policies
#define SCHED_OTHER   0
 

Functions

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

Detailed Description

Macro Definition Documentation

◆ SCHED_OTHER

#define SCHED_OTHER   0

Another scheduling policy.

Function Documentation

◆ sched_get_priority_max()

int sched_get_priority_max ( int  policy)

Get priority limit.

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

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

◆ sched_yield()

int sched_yield ( void  )

Yield the processor.

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

Return values
0- Upon successful completion