Public Member Functions |
| map_t (string, link_tp)*succ |
| List of link pointers that consume data produced by this task.
|
| map_t (string, link_tp)*pred |
| List of link pointers that produce data this task consumes.
|
| array_t (cross_link_tp)*sink |
| List of links toward consumer tasks mapped to another core.
|
| array_t (cross_link_tp)*source |
| List of links toward producer tasks mapped to another cores.
|
Data Fields |
task_id | id |
| Identification of the task. All tasks (say n tasks) should be numbered continuously from 1 to n to be friendly with files generated to ILP solver and task graph graphic generator.
|
processor_t ** | core |
| Pointer to the processor structure this task is mapped to.
|
size_t | width |
int | frequency |
| Frequency in KHz this task should run at.
|
double | workload |
task_status_t | status |
| State of the task: initialized, running, killed, etc.
|
char * | name |
| Human-readable identifier for the task.
|
int(* | init )(struct task *, void *) |
| Pointer to initialisation function, run before the stream begins.
|
int(* | start )(struct task *) |
| Pointer to function to run when tasks begins to work, run after the stream begins.
|
int(* | run )(struct task *) |
| Pointer to task's main work function.
|
int(* | kill )(struct task *) |
| Pointer to function when the task is killed, while the stream still runs.
|
int(* | destroy )(struct task *) |
| Pointer to dunction when the task is destroyed, run after the stream terminates.
|
unsigned long long int | start_time |
| Monitoring variables.
|
unsigned long long int | stop_time |
unsigned long long int | start_presort |
unsigned long long int | stop_presort |
unsigned long long int | check_time |
unsigned long long int | push_time |
unsigned long long int | work_time |
unsigned long long int | check_errors |
unsigned long long int | check_recv |
unsigned long long int | check_putback |
unsigned long long int | check_feedback |
unsigned long long int | put_reset |
unsigned long long int | put_pop |
unsigned long long int | put_send |
unsigned long long int | check_wait |
unsigned long long int | push_wait |
unsigned long long int | work_wait |
unsigned long long int | work_read |
unsigned long long int | work_write |
unsigned long long int | step_init |
| Monitoring variables.
|
unsigned long long int | step_start |
unsigned long long int | step_check |
unsigned long long int | step_work |
unsigned long long int | step_push |
unsigned long long int | step_killed |
unsigned long long int | step_zombie |
unsigned long long int | step_transition |
Model of a streaming task
Definition at line 113 of file task.h.