HeMPS  8.0
task_location.h
Go to the documentation of this file.
1 
17 #ifndef TASK_LOCATION_H_
18 #define TASK_LOCATION_H_
19 
20 #include "../../include/kernel_pkg.h"
21 
22 #define MAX_TASK_LOCATION (MAX_LOCAL_TASKS*MAX_TASKS_APP)
23 
27 typedef struct {
28  int id;
30 } TaskLocaion;
31 
32 void init_task_location();
33 
34 int get_task_location(int);
35 
36 void add_task_location(int, int);
37 
38 int remove_task_location(int);
39 
41 
42 
43 
44 #endif /* TASK_LOCATION_H_ */
int remove_task_location(int)
Definition: task_location.c:67
void clear_app_tasks_locations(int)
Definition: task_location.c:93
int id
ID of task.
Definition: task_location.h:28
void init_task_location()
Definition: task_location.c:23
int proc_address
processor address of the task
Definition: task_location.h:29
int get_task_location(int)
Definition: processors.c:174
This structure stores the location (slave process address) of the other task.
Definition: task_location.h:27
void add_task_location(int, int)
Definition: task_location.c:48