Commit 201ab915 authored by lhausamm's avatar lhausamm
Browse files

task dep graph: remove none when subtype is none

parent eeafe65a
...@@ -143,10 +143,26 @@ void scheduler_write_dependency(struct scheduler *s) { ...@@ -143,10 +143,26 @@ void scheduler_write_dependency(struct scheduler *s) {
tb = ta->unlock_tasks[j]; tb = ta->unlock_tasks[j];
char tmp[200]; /* text to write */ char tmp[200]; /* text to write */
char ta_name[200];
char tb_name[200];
/* construct line */ /* construct line */
sprintf(tmp, "\t \"%s %s\"->\"%s %s\";\n", taskID_names[ta->type], if (ta->subtype == task_subtype_none)
subtaskID_names[ta->subtype], taskID_names[tb->type], sprintf(ta_name, "%s", taskID_names[ta->type]);
subtaskID_names[tb->subtype]); else
sprintf(ta_name, "\"%s %s\"",
taskID_names[ta->type],
subtaskID_names[ta->subtype]);
if (tb->subtype == task_subtype_none)
sprintf(tb_name, "%s", taskID_names[tb->type]);
else
sprintf(tb_name, "\"%s %s\"",
taskID_names[tb->type],
subtaskID_names[tb->subtype]);
sprintf(tmp, "\t %s->%s;\n",
ta_name,
tb_name);
/* check if dependency already written */ /* check if dependency already written */
int test = 1; int test = 1;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment