diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-05-16 12:01:56 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-05-16 12:01:56 -0400 |
| commit | 546b17c0f6360f4e83e6f0dda8db99656aa94077 (patch) | |
| tree | c5e52133b35b2fe5fd0e76b6ddafc71232e04e7a /native/include | |
| parent | f906d6f40b3f447fd1ba65df3f5e4406972a2331 (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.h | 16 |
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 | ||
| 4 | typedef std::vector<const RequestBound*> ContentionSet; | 4 | typedef std::vector<const RequestBound*> ContentionSet; |
| 5 | |||
| 6 | typedef std::vector<ContentionSet> Resources; | 5 | typedef std::vector<ContentionSet> Resources; |
| 7 | |||
| 8 | typedef std::vector<Resources> ClusterResources; | 6 | typedef std::vector<Resources> ClusterResources; |
| 9 | |||
| 10 | typedef std::vector<ContentionSet> AllPerCluster; | 7 | typedef std::vector<ContentionSet> AllPerCluster; |
| 11 | |||
| 12 | typedef std::vector<ContentionSet> TaskContention; | 8 | typedef std::vector<ContentionSet> TaskContention; |
| 13 | |||
| 14 | typedef std::vector<TaskContention> ClusterContention; | 9 | typedef std::vector<TaskContention> ClusterContention; |
| 15 | 10 | ||
| 16 | struct LimitedRequestBound { | 11 | struct LimitedRequestBound { |
| @@ -29,4 +24,15 @@ void sort_by_request_length(Resources& resources); | |||
| 29 | void sort_by_request_length(ClusterResources& resources); | 24 | void sort_by_request_length(ClusterResources& resources); |
| 30 | void sort_by_request_length(ContentionSet& cs); | 25 | void sort_by_request_length(ContentionSet& cs); |
| 31 | 26 | ||
| 27 | |||
| 28 | typedef std::vector<const TaskInfo*> Cluster; | ||
| 29 | typedef std::vector<Cluster> Clusters; | ||
| 30 | |||
| 31 | void split_by_cluster(const ResourceSharingInfo& info, Clusters& clusters); | ||
| 32 | void split_by_resource(const ResourceSharingInfo& info, Resources& resources); | ||
| 33 | |||
| 34 | |||
| 35 | |||
| 36 | extern const unsigned int UNLIMITED; | ||
| 37 | |||
| 32 | #endif | 38 | #endif |
