view dependency.h @ 50:5c59bfe62d92

handler interface for counters... not working
author Nina Engelhardt <nengel@mailbox.tu-berlin.de>
date Fri, 13 Jan 2012 15:03:20 +0100
parents 593fe0543a22
children 6b723b55b9a0
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>
13 #include "VMS/ListOfArrays/ListOfArrays.h"
15 typedef struct {
16 int vp;
17 int task;
18 } Unit;
20 typedef struct {
21 int from_vp;
22 int from_task;
23 int to_vp;
24 int to_task;
25 } Dependency;
27 typedef struct {
28 int32 id;
29 ListOfArrays* senders;
30 ListOfArrays* receivers;
31 } NtoN;
33 FILE* dependency_file;
35 Dependency* new_dependency(int from_vp, int from_task, int to_vp, int to_task);
37 NtoN* new_NtoN(int id);
39 int set_dependency_file(FILE* file);
41 void print_ctl_dependency_to_file(void* _dep);
43 void print_comm_dependency_to_file(void* _dep);
45 void print_dyn_dependency_to_file(void* _dep);
47 void print_hw_dependency_to_file(void* _dep);
49 void print_dependency_to_file(void* dep);
51 void print_unit_to_file(void* unit);
53 void print_nton_to_file(void* _nton);
55 #endif /* DEPENDENCY_H */