X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c620ebc670a6dd5c6605e643fb4cbc7e61b991d4..b51da37243dc16575499f4cb7729fe8bdd7fa514:/src/simix/Synchro.h diff --git a/src/simix/Synchro.h b/src/simix/Synchro.h index 1d7e83e2d0..6421d5c28c 100644 --- a/src/simix/Synchro.h +++ b/src/simix/Synchro.h @@ -7,6 +7,7 @@ #define _SIMIX_SYNCHRO_HPP #include +#include #include #include "simgrid/forward.h" @@ -22,10 +23,9 @@ namespace simix { public: Synchro(); virtual ~Synchro(); - e_smx_state_t state; /* State of the synchro */ + e_smx_state_t state = SIMIX_WAITING; /* State of the synchro */ std::string name; /* synchro name if any */ - xbt_fifo_t simcalls; /* List of simcalls waiting for this synchro */ - char *category = nullptr; /* For instrumentation */ + std::list simcalls; /* List of simcalls waiting for this synchro */ virtual void suspend()=0; virtual void resume()=0; @@ -34,7 +34,7 @@ namespace simix { void ref(); void unref(); private: - int refcount=1; + int refcount = 1; }; }} // namespace simgrid::simix #else /* not C++ */