#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");
static int receiver(const char* box_name)
{
- int* payload;
auto mb = simgrid::s4u::Mailbox::by_name(box_name);
+ const int* payload;
payload = static_cast<int*>(mb->get());
MC_assert(*payload == 1);
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)