X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/813e836067a1aa922c5fb1432300b7e6390ee352..1a64ca4c11a1eb7ba2ecd102f877ac571486a034:/teshsuite/s4u/comm-pt2pt/comm-pt2pt.cpp diff --git a/teshsuite/s4u/comm-pt2pt/comm-pt2pt.cpp b/teshsuite/s4u/comm-pt2pt/comm-pt2pt.cpp index c9282f0e3e..6fbc60742a 100644 --- a/teshsuite/s4u/comm-pt2pt/comm-pt2pt.cpp +++ b/teshsuite/s4u/comm-pt2pt/comm-pt2pt.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2021. 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. */ @@ -53,32 +53,32 @@ static void sender(std::vector args) switch (args[0][test - 1]) { case 'r': XBT_INFO("Test %u: r (regular send)", test); - mbox->put((void*)mboxName, 42.0); + mbox->put(mboxName, 42.0); break; case 'R': XBT_INFO("Test %u: R (sleep + regular send)", test); simgrid::s4u::this_actor::sleep_for(0.5); - mbox->put((void*)mboxName, 42.0); + mbox->put(mboxName, 42.0); break; case 'i': XBT_INFO("Test %u: i (asynchronous isend)", test); - mbox->put_async((void*)mboxName, 42.0)->wait(); + mbox->put_async(mboxName, 42.0)->wait(); break; case 'I': XBT_INFO("Test %u: I (sleep + isend)", test); simgrid::s4u::this_actor::sleep_for(0.5); - mbox->put_async((void*)mboxName, 42.0)->wait(); + mbox->put_async(mboxName, 42.0)->wait(); break; case 'd': XBT_INFO("Test %u: d (detached send)", test); - mbox->put_init((void*)mboxName, 42.0)->detach(); + mbox->put_init(mboxName, 42.0)->detach(); break; case 'D': XBT_INFO("Test %u: D (sleep + detached send)", test); simgrid::s4u::this_actor::sleep_for(0.5); - mbox->put_init((void*)mboxName, 42.0)->detach(); + mbox->put_init(mboxName, 42.0)->detach(); break; default: xbt_die("Unknown sender spec for test %u: '%c'", test, args[0][test - 1]); @@ -186,7 +186,7 @@ int main(int argc, char* argv[]) simgrid::s4u::Actor::create("recver", hosts[1], receiver, argRecv); e.run(); - XBT_INFO("Simulation time %g", e.get_clock()); + XBT_INFO("Simulation time %g", simgrid::s4u::Engine::get_clock()); return 0; }