From 54d69ea3e123b20303871b0179599f92a39aafdf Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Tue, 7 Aug 2012 19:31:23 +0200 Subject: 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. --- native/src/blocking/rw-task-fair.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'native/src/blocking/rw-task-fair.cpp') 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 @@ #include "rw-blocking.h" #include "stl-helper.h" - - -#ifdef CONFIG_USE_0X -#include -#define hashmap std::unordered_map -#else -#include -#define hashmap __gnu_cxx::hash_map -#endif - - +#include "stl-hashmap.h" static Interference bound_blocking_all( const TaskInfo* tsk, -- cgit v1.2.2