Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
removed random seed in order to test result
[simgrid.git] / teshsuite / mc / mutex-handling / mutex-handling.cpp
index 4e00e3dd7314902991f304f70d34556d4061ca6a..c2487908d2e7993c95648319085bbe8d237c2a54 100644 (file)
@@ -23,7 +23,6 @@
 #include "simgrid/s4u/Host.hpp"
 #include "simgrid/s4u/Mailbox.hpp"
 #include "simgrid/s4u/Mutex.hpp"
-#include <xbt/synchro.h>
 
 XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test, "Messages specific for this msg example");
 
@@ -45,7 +44,7 @@ static int receiver(const char* box_name)
 
 static int sender(const char* box_name, simgrid::s4u::MutexPtr mutex, int value)
 {
-  int* payload = new int(value);
+  auto* payload = new int(value);
   auto mb      = simgrid::s4u::Mailbox::by_name(box_name);
 
   if (mutex)