static void emigrant()
{
XBT_INFO(
"I'll look for a new job on another machine ('Boivin') where the grass is greener.");
XBT_INFO(
"Yeah, found something to do");
XBT_INFO(
"Moving back home after work");
checkpoint->lock();
identification->notify_all();
checkpoint->unlock();
XBT_INFO(
"Uh, nothing to do here. Stopping now");
}
static void policeman()
{
checkpoint->lock();
while (controlled_process == nullptr)
identification->wait(checkpoint);
controlled_process->resume();
checkpoint->unlock();
}
{
xbt_assert(argc == 2,
"Usage: %s platform_file\n\tExample: %s msg_platform.xml\n", argv[0], argv[0]);
e.loadPlatform(argv[1]);
e.run();
XBT_INFO(
"Simulation time %g", e.getClock());
return 0;
}