TizenRT Libs&Environment  v2.0 M2
sched.h File Reference
#include <tinyara/config.h>
#include <sys/types.h>
#include <stdint.h>
#include <tinyara/sched.h>
Include dependency graph for sched.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  sched_param
 POSIX-like scheduling parameter structure. More...
 

Macros

#define EXTERN   extern
 
#define SCHED_FIFO   1 /* FIFO per priority scheduling policy */
 
#define SCHED_RR   2 /* Round robin scheduling policy */
 
#define SCHED_SPORADIC   3 /* Not supported */
 
#define SCHED_OTHER   4 /* Not supported */
 
#define TASK_CANCEL_ENABLE   (0)
 
#define TASK_CANCEL_DISABLE   (1)
 
#define TASK_CANCEL_DEFERRED   (0)
 
#define TASK_CANCEL_ASYNCHRONOUS   (1)
 

Functions

int task_create (FAR const char *name, int priority, int stack_size, main_t entry, FAR char *const argv[])
 creates and activates a new task with a specified priority and returns its system-assigned ID. More...
 
int task_delete (pid_t pid)
 causes a specified task to cease to exist. More...
 
int task_restart (pid_t pid)
 restart a task. More...
 
int task_setcancelstate (int state, FAR int *oldstate)
 
int task_setcanceltype (int type, FAR int *oldtype)
 
void task_testcancel (void)
 
int sched_setparam (pid_t pid, const struct sched_param *param)
 set scheduling parameters More...
 
int sched_getparam (pid_t pid, struct sched_param *param)
 get scheduling parameters More...
 
int sched_setscheduler (pid_t pid, int policy, FAR const struct sched_param *param)
 set scheduling policy and parameters More...
 
int sched_getscheduler (pid_t pid)
 get scheduling policy and parameters More...
 
int sched_yield (void)
 yield the processor More...
 
int sched_get_priority_max (int policy)
 get priority limits More...
 
int sched_get_priority_min (int policy)
 get priority limits More...
 
int sched_rr_get_interval (pid_t pid, FAR struct timespec *interval)
 get execution time limits More...
 
int sched_lock (void)
 disable context switching More...
 
int sched_unlock (void)
 re-enable the context switching which blocked from sched_lock() More...
 
int sched_lockcount (void)
 returns the current value of the lockcount More...
 

Macro Definition Documentation

#define EXTERN   extern

Definition at line 125 of file sched.h.

Function Documentation

int task_setcancelstate ( int  state,
FAR int *  oldstate 
)
int task_setcanceltype ( int  type,
FAR int *  oldtype 
)
void task_testcancel ( void  )