HeMPS  8.0
Functions | Variables
new_task.c File Reference

This module implements the function of NewTask FIFO. This module is used only by the manager kernel. More...

#include "new_task.h"
#include "utils.h"
Include dependency graph for new_task.c:

Functions

void init_new_task_list ()
 
void add_new_task (NewTask *input)
 
NewTaskget_next_new_task ()
 

Variables

NewTask new_task_list [MAX_GLOBAL_TASKS]
 Array with the new task requisitions.
 
unsigned int first = 0
 pointer to the first position index to remove in the array
 
unsigned int last = 0
 pointer to the last position index to insert in the array
 
unsigned int size_new_app = 0
 

Detailed Description

This module implements the function of NewTask FIFO. This module is used only by the manager kernel.

HEMPS VERSION - 8.0 - support for RT applications

Distribution: June 2016

Created by: Marcelo Ruaro - contact: marce.nosp@m.lo.r.nosp@m.uaro@.nosp@m.acad.nosp@m..pucr.nosp@m.s.br

Research group: GAPH-PUCRS - contact: ferna.nosp@m.ndo..nosp@m.morae.nosp@m.s@pu.nosp@m.crs.b.nosp@m.r

Function Documentation

void add_new_task ( NewTask input)

Add a new task

Parameters
inputTask to be added
NewTask* get_next_new_task ( )

Remove the next new task positioned at first index

Returns
Pointer of the next task
void init_new_task_list ( )

Initializes the new_task_list array