X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4dbb8aa24d54e0a4091b1f01017032702d0376f7..900387d3c17ad331e7ce770590d07aca4be07c1d:/include/simgrid/s4u/async.hpp diff --git a/include/simgrid/s4u/async.hpp b/include/simgrid/s4u/async.hpp index 6d76288001..37bd4e144f 100644 --- a/include/simgrid/s4u/async.hpp +++ b/include/simgrid/s4u/async.hpp @@ -7,28 +7,33 @@ #ifndef SIMGRID_S4U_ASYNC_HPP #define SIMGRID_S4U_ASYNC_HPP -namespace simgrid { -namespace s4u { +#include +#include +#include -/* Forward declaration */ -class Comm; +#include +SG_BEGIN_DECL(); typedef enum { inited, started, finished } e_s4u_async_state_t; +SG_END_DECL(); + +namespace simgrid { +namespace s4u { /** @brief Asynchronous Actions * * This class is the ancestor of every asynchronous actions, that is, of actions that do take time in the simulated world. */ -class Async { +XBT_PUBLIC_CLASS Async { friend Comm; protected: Async(); virtual ~Async(); private: - smx_synchro_t p_inferior = NULL; + struct s_smx_synchro *p_inferior = NULL; private: e_s4u_async_state_t p_state = inited;