]> AND Public Git Repository - simgrid.git/blobdiff - teshsuite/xbt/parallel_log_crashtest/parallel_log_crashtest.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
#139 :
[simgrid.git] / teshsuite / xbt / parallel_log_crashtest / parallel_log_crashtest.cpp
index d7341f5cd6c38b03573f6029c56e5775ec34eae8..b894023e669a2ce91d5f3759d9284fbddf44da1d 100644 (file)
@@ -1,11 +1,11 @@
 /* synchro_crashtest -- tries to crash the logging mechanism by doing parallel logs*/
 
-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2020. 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. */
 
-#include "simgrid/msg.h"
+#include "simgrid/s4u/Engine.hpp"
 #include <thread>
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(synchro_crashtest, "Logs of this example");
@@ -29,7 +29,7 @@ static void crasher_thread(int id)
 
 int main(int argc, char* argv[])
 {
-  MSG_init(&argc, argv);
+  simgrid::s4u::Engine e(&argc, argv);
 
   std::thread crashers[crasher_amount];