4 #define USE_UNORDERED_MAP 1
5 //#undef USE_UNORDERED_MAP
8 #ifdef USE_UNORDERED_MAP
9 # include <tr1/unordered_map>
10 # define MAP_TEMPLATE std::tr1::unordered_map
13 # define MAP_TEMPLATE std::map
16 #include "communicator.h"
21 process(int argc, char* argv[]);
26 std::vector<neighbor> neigh;
27 MAP_TEMPLATE<m_host_t, neighbor*> rev_neigh;
28 std::vector<neighbor*> pneigh;
31 int ctrl_close_pending;
32 int data_close_pending;
40 virtual double load_balance(double my_load);
41 void send1_no_bookkeeping(neighbor& nb);
42 void send1_bookkeeping(neighbor& nb);
44 bool receive(bool wait_for_close);
45 void finalize1(neighbor& nb);
47 void print_loads(e_xbt_log_priority_t logp = xbt_log_priority_info);
49 void insert_neighbor_in_map(neighbor& nb);