view dependency.h @ 46:bde026832af7

switch dependencies to ListOfArrays
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Mon, 19 Dec 2011 17:15:10 +0100
parents 6a367b5d9a2d
children 23bcca1c3687
line source
1 /*
2 * File: dependency.h
3 * Author: Nina Engelhardt
4 *
5 * Created on 29. August 2011, 17:41
6 */
8 #ifndef DEPENDENCY_H
9 #define DEPENDENCY_H
12 #include <stdio.h>
14 typedef struct {
15 int vp;
16 int task;
17 } Unit;
19 typedef struct {
20 int from_vp;
21 int from_task;
22 int to_vp;
23 int to_task;
24 } Dependency;
26 FILE* dependency_file;
28 Dependency* new_dependency(int from_vp, int from_task, int to_vp, int to_task);
30 int set_dependency_file(FILE* file);
32 void print_ctl_dependency_to_file(void* _dep);
34 void print_comm_dependency_to_file(void* _dep);
36 void print_dependency_to_file(void* dep);
38 #endif /* DEPENDENCY_H */