Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[s4u] Add a header file with forward declarations
[simgrid.git] / include / simgrid / s4u / async.hpp
index 838d800..37bd4e1 100644 (file)
@@ -8,8 +8,11 @@
 #define SIMGRID_S4U_ASYNC_HPP
 
 #include <stdlib.h>
+#include <xbt/base.h>
 #include <xbt/misc.h>
 
+#include <simgrid/s4u/forward.hpp>
+
 SG_BEGIN_DECL();
 typedef enum {
        inited, started, finished
@@ -19,15 +22,11 @@ SG_END_DECL();
 namespace simgrid {
 namespace s4u {
 
-/* Forward declaration */
-class Comm;
-
-
 /** @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();