-/* Copyright (c) 2006-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/// Wait on the barrier then leave
static void worker(sg4::BarrierPtr barrier)
{
- XBT_INFO("Waiting on the barrier");
- barrier->wait();
+ XBT_INFO("Waiting on the barrier");
+ barrier->wait();
- XBT_INFO("Bye");
+ XBT_INFO("Bye");
}
/// Spawn actor_count-1 workers and do a barrier with them
sg4::Actor::create("worker", sg4::Host::by_name("Jupiter"), worker, barrier);
}
- XBT_INFO("Waiting on the barrier");
- barrier->wait();
+ XBT_INFO("Waiting on the barrier");
+ barrier->wait();
- XBT_INFO("Bye");
+ XBT_INFO("Bye");
}
int main(int argc, char **argv)