diff options
| author | Bjoern Brandenburg <bbb@mpi-sws.org> | 2012-08-07 13:31:23 -0400 |
|---|---|---|
| committer | Bjoern Brandenburg <bbb@mpi-sws.org> | 2013-02-12 06:49:39 -0500 |
| commit | 54d69ea3e123b20303871b0179599f92a39aafdf (patch) | |
| tree | 78fe74859862d425dd5fca859771ced1f6b79393 /native/src | |
| parent | 9eb76ebd3e970c3e37ce95ec6e21242a3b0ee0e4 (diff) | |
Extract hash map hack from rw-task-fair.cpp
Hashmaps will be needed by the LP code.
Additionally, add definitions for hash maps with uint64_t keys.
This is only relevant for legacy C++ libs as used on Mac OS X.
On Linux, we use the newer C++ '11 STL implementation.
Diffstat (limited to 'native/src')
| -rw-r--r-- | native/src/blocking/rw-task-fair.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/native/src/blocking/rw-task-fair.cpp b/native/src/blocking/rw-task-fair.cpp index bb27c14..f3355c6 100644 --- a/native/src/blocking/rw-task-fair.cpp +++ b/native/src/blocking/rw-task-fair.cpp | |||
| @@ -3,17 +3,7 @@ | |||
| 3 | #include "rw-blocking.h" | 3 | #include "rw-blocking.h" |
| 4 | 4 | ||
| 5 | #include "stl-helper.h" | 5 | #include "stl-helper.h" |
| 6 | 6 | #include "stl-hashmap.h" | |
| 7 | |||
| 8 | #ifdef CONFIG_USE_0X | ||
| 9 | #include <unordered_map> | ||
| 10 | #define hashmap std::unordered_map | ||
| 11 | #else | ||
| 12 | #include <ext/hash_map> | ||
| 13 | #define hashmap __gnu_cxx::hash_map | ||
| 14 | #endif | ||
| 15 | |||
| 16 | |||
| 17 | 7 | ||
| 18 | static Interference bound_blocking_all( | 8 | static Interference bound_blocking_all( |
| 19 | const TaskInfo* tsk, | 9 | const TaskInfo* tsk, |
