XBT_DEBUG("%s/neighbor -> \"%s\"", hostname, neighbor_name);
xbt_dynar_push_as(args, const char*, neighbor_name);
}
- MSG_set_function(hostname, "loba", args);
+ MSG_set_function(hostname, "compute", args);
xbt_dynar_reset(args);
}
xbt_dynar_free(&args);
comp_iter = lb_iter = 0;
- compute_thread = new_msg_thread("compute",
- std::tr1::bind(&process::compute_loop,
- this));
+ lb_thread = new_msg_thread("loba",
+ std::tr1::bind(&process::load_balance_loop,
+ this));
e_xbt_log_priority_t logp = xbt_log_priority_verbose;
if (!LOG_ISENABLED(logp))
process::~process()
{
- delete compute_thread;
+ delete lb_thread;
total_load_exit += real_load;
if (opt::log_rate < 0)
return;
if (opt::log_rate >= 0)
XBT_INFO("Initial load: %g", real_load);
XBT_VERB("Starting...");
- compute_thread->start();
- load_balance_loop();
- compute_thread->wait();
+ lb_thread->start();
+ compute_loop();
+ lb_thread->wait();
XBT_VERB("Done.");
return 0;
}
double expected_load; // expected load in bookkeeping mode
// Load-balancing loop
+ msg_thread* lb_thread;
void load_balance_loop();
// Simulate computation loop
- msg_thread* compute_thread;
void compute_loop();
bool still_running();