aboutsummaryrefslogtreecommitdiffstats
path: root/native/include
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-05-16 12:01:56 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-05-16 12:01:56 -0400
commit546b17c0f6360f4e83e6f0dda8db99656aa94077 (patch)
treec5e52133b35b2fe5fd0e76b6ddafc71232e04e7a /native/include
parentf906d6f40b3f447fd1ba65df3f5e4406972a2331 (diff)
Move MPPC++: Break out the MPCP code into own file
Part of refactoring sharedres.cpp.
Diffstat (limited to 'native/include')
-rw-r--r--native/include/blocking.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/native/include/blocking.h b/native/include/blocking.h
index 80b4973..9930aa2 100644
--- a/native/include/blocking.h
+++ b/native/include/blocking.h
@@ -2,15 +2,10 @@
2#define BLOCKING_H 2#define BLOCKING_H
3 3
4typedef std::vector<const RequestBound*> ContentionSet; 4typedef std::vector<const RequestBound*> ContentionSet;
5
6typedef std::vector<ContentionSet> Resources; 5typedef std::vector<ContentionSet> Resources;
7
8typedef std::vector<Resources> ClusterResources; 6typedef std::vector<Resources> ClusterResources;
9
10typedef std::vector<ContentionSet> AllPerCluster; 7typedef std::vector<ContentionSet> AllPerCluster;
11
12typedef std::vector<ContentionSet> TaskContention; 8typedef std::vector<ContentionSet> TaskContention;
13
14typedef std::vector<TaskContention> ClusterContention; 9typedef std::vector<TaskContention> ClusterContention;
15 10
16struct LimitedRequestBound { 11struct LimitedRequestBound {
@@ -29,4 +24,15 @@ void sort_by_request_length(Resources& resources);
29void sort_by_request_length(ClusterResources& resources); 24void sort_by_request_length(ClusterResources& resources);
30void sort_by_request_length(ContentionSet& cs); 25void sort_by_request_length(ContentionSet& cs);
31 26
27
28typedef std::vector<const TaskInfo*> Cluster;
29typedef std::vector<Cluster> Clusters;
30
31void split_by_cluster(const ResourceSharingInfo& info, Clusters& clusters);
32void split_by_resource(const ResourceSharingInfo& info, Resources& resources);
33
34
35
36extern const unsigned int UNLIMITED;
37
32#endif 38#endif