class Receiver {
public:
- void operator()()
+ void operator()() const
{
XBT_INFO("Starting.");
auto mailbox = simgrid::s4u::Mailbox::by_name("receiver");
class Suspender {
public:
- void operator()()
+ void operator()() const
{
XBT_INFO("Suspend the receiver...");
receiver->suspend();
int main(int argc, char** argv)
{
- simgrid::s4u::Engine* engine = new simgrid::s4u::Engine(&argc, argv);
+ const simgrid::s4u::Engine* engine = new simgrid::s4u::Engine(&argc, argv);
engine->load_platform(argv[1]);
simgrid::s4u::Host* host = simgrid::s4u::Host::by_name("Tremblay");