double compute_cost;
do {
- auto msg = mailbox->get_unique<double>();
+ double* msg = mailbox->get<double>();
compute_cost = *msg;
+ delete msg;
if (compute_cost > 0) /* If compute_cost is valid, execute a computation of that cost */
simgrid::s4u::this_actor::execute(compute_cost);
double compute_cost;
do {
- auto msg = mailbox->get_unique<double>();
+ double* msg = mailbox->get<double>();
compute_cost = *msg;
+ delete msg;
if (compute_cost > 0) /* If compute_cost is valid, execute a computation of that cost */
simgrid::s4u::this_actor::execute(compute_cost);
simgrid::s4u::Mailbox* mailbox = simgrid::s4u::Mailbox::by_name(mailbox_name);
while (true) { // Master forcefully kills the workers by the end of the simulation
- auto msg = mailbox->get_unique<double>();
+ double* msg = mailbox->get<double>();
double compute_cost = *msg;
+ delete msg;
simgrid::s4u::this_actor::execute(compute_cost);
}
simgrid::s4u::Mailbox* mailbox = simgrid::s4u::Mailbox::by_name(mailbox_name);
while (true) { // Master forcefully kills the workers by the end of the simulation
- auto msg = mailbox->get_unique<double>();
+ double* msg = mailbox->get<double>();
double compute_cost = *msg;
+ delete msg;
// simgrid::s4u::this_actor::exec_init(compute_cost)->set_tracing_category(category)->wait();
/* Long form:*/