drake  1.0.0
task Struct Reference

#include <task.h>

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

Detailed Description

Model of a streaming task

Definition at line 113 of file task.h.


Member Function Documentation

List of links toward consumer tasks mapped to another core.

List of links toward producer tasks mapped to another cores.

map_t ( string  ,
link_tp   
)

List of link pointers that consume data produced by this task.

map_t ( string  ,
link_tp   
)

List of link pointers that produce data this task consumes.


Field Documentation

unsigned long long int check_errors

Definition at line 148 of file task.h.

unsigned long long int check_feedback

Definition at line 148 of file task.h.

unsigned long long int check_putback

Definition at line 148 of file task.h.

unsigned long long int check_recv

Definition at line 148 of file task.h.

unsigned long long int check_time

Definition at line 148 of file task.h.

unsigned long long int check_wait

Definition at line 148 of file task.h.

Pointer to the processor structure this task is mapped to.

Definition at line 118 of file task.h.

int(* destroy)(struct task *)

Pointer to dunction when the task is destroyed, run after the stream terminates.

Definition at line 146 of file task.h.

int frequency

Frequency in KHz this task should run at.

Definition at line 131 of file task.h.

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.

Definition at line 116 of file task.h.

int(* init)(struct task *, void *)

Pointer to initialisation function, run before the stream begins.

Definition at line 138 of file task.h.

int(* kill)(struct task *)

Pointer to function when the task is killed, while the stream still runs.

Definition at line 144 of file task.h.

char* name

Human-readable identifier for the task.

Definition at line 136 of file task.h.

unsigned long long int push_time

Definition at line 148 of file task.h.

unsigned long long int push_wait

Definition at line 148 of file task.h.

unsigned long long int put_pop

Definition at line 148 of file task.h.

unsigned long long int put_reset

Definition at line 148 of file task.h.

unsigned long long int put_send

Definition at line 148 of file task.h.

int(* run)(struct task *)

Pointer to task's main work function.

Definition at line 142 of file task.h.

int(* start)(struct task *)

Pointer to function to run when tasks begins to work, run after the stream begins.

Definition at line 140 of file task.h.

unsigned long long int start_presort

Definition at line 148 of file task.h.

unsigned long long int start_time

Monitoring variables.

Definition at line 148 of file task.h.

State of the task: initialized, running, killed, etc.

Definition at line 134 of file task.h.

unsigned long long int step_check

Definition at line 150 of file task.h.

unsigned long long int step_init

Monitoring variables.

Definition at line 150 of file task.h.

unsigned long long int step_killed

Definition at line 150 of file task.h.

unsigned long long int step_push

Definition at line 150 of file task.h.

unsigned long long int step_start

Definition at line 150 of file task.h.

unsigned long long int step_transition

Definition at line 150 of file task.h.

unsigned long long int step_work

Definition at line 150 of file task.h.

unsigned long long int step_zombie

Definition at line 150 of file task.h.

unsigned long long int stop_presort

Definition at line 148 of file task.h.

unsigned long long int stop_time

Definition at line 148 of file task.h.

size_t width

Definition at line 119 of file task.h.

unsigned long long int work_read

Definition at line 148 of file task.h.

unsigned long long int work_time

Definition at line 148 of file task.h.

unsigned long long int work_wait

Definition at line 148 of file task.h.

unsigned long long int work_write

Definition at line 148 of file task.h.

double workload

Definition at line 132 of file task.h.


The documentation for this struct was generated from the following file: