6 XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main);
8 hostdata* hostdata::instances = NULL;
10 void hostdata::create()
12 int nhosts = MSG_get_host_number();
13 m_host_t* host_list = MSG_get_host_table();
14 VERB1("Got %d hosts.", nhosts);
15 for (int i = 0; i < nhosts; i++) {
16 hostdata* h = new hostdata(host_list[i]);
17 MSG_host_set_data(host_list[i], h);
18 VERB2("Host #%d named \"%s\".", i, h->get_name());
25 void hostdata::destroy()
28 hostdata* h = instances;
34 hostdata::hostdata(m_host_t host)
36 , name(MSG_host_get_name(host))
37 , ctrl_mbox(std::string(name) + "_ctrl")
38 , data_mbox(std::string(name) + "_data")