#ifndef _SIMIX_SYNCHRO_HPP
#define _SIMIX_SYNCHRO_HPP
+
+#include <string>
+
+#include <xbt/base.h>
#include "simgrid/forward.h"
#ifdef __cplusplus
namespace simgrid {
namespace simix {
- class Synchro {
+ XBT_PUBLIC_CLASS Synchro {
public:
Synchro();
virtual ~Synchro();
e_smx_state_t state; /* State of the synchro */
- char *name = nullptr; /* synchro name if any */
+ std::string name; /* synchro name if any */
xbt_fifo_t simcalls; /* List of simcalls waiting for this synchro */
char *category = nullptr; /* For instrumentation */