HeMPS  8.0
new_task.h
Go to the documentation of this file.
1 
14 #ifndef SOFTWARE_INCLUDE_NEW_TASK_NEW_TASK_H_
15 #define SOFTWARE_INCLUDE_NEW_TASK_NEW_TASK_H_
16 
17 #include "../../include/kernel_pkg.h"
18 
19 //#define MAX_GLOBAL_TASKS (MAX_LOCAL_TASKS * MAX_SLAVE_PROCESSORS) + 1 //!<Max number of tasks that can execute simultaneously in the system. (Plus one to first never be equal to last)
20 #define MAX_GLOBAL_TASKS MAX_TASKS_APP + 1
21 
22 
25 typedef struct {
26  int task_ID;
27  int master_ID;
29  unsigned int initial_address;
30  int code_size;
31 } NewTask;
32 
33 
34 void init_new_task_list();
35 
36 void add_new_task(NewTask *);
37 
39 
40 
41 #endif /* SOFTWARE_INCLUDE_NEW_TASK_NEW_TASK_H_ */
void init_new_task_list()
Definition: new_task.c:26
NewTask * get_next_new_task()
Definition: new_task.c:68
unsigned int initial_address
Initial repository address of the task.
Definition: new_task.h:29
int master_ID
Master address (XY) of the task.
Definition: new_task.h:27
void add_new_task(NewTask *)
Definition: new_task.c:36
int code_size
Size of the repository code in repository words (4 bytes)
Definition: new_task.h:30
int allocated_processor
Address (XY) of the task allocated processor.
Definition: new_task.h:28
This structure stores the variables used to manage a new task requisition by the global manager kerne...
Definition: new_task.h:25
int task_ID
ID of the new task.
Definition: new_task.h:26