Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make it possible to load async.hpp without simix
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 18 Aug 2015 00:34:20 +0000 (02:34 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 18 Aug 2015 00:34:20 +0000 (02:34 +0200)
include/simgrid/s4u/async.hpp

index 6d76288..838d800 100644 (file)
@@ -7,15 +7,21 @@
 #ifndef SIMGRID_S4U_ASYNC_HPP
 #define SIMGRID_S4U_ASYNC_HPP
 
+#include <stdlib.h>
+#include <xbt/misc.h>
+
+SG_BEGIN_DECL();
+typedef enum {
+       inited, started, finished
+} e_s4u_async_state_t;
+SG_END_DECL();
+
 namespace simgrid {
 namespace s4u {
 
 /* Forward declaration */
 class Comm;
 
-typedef enum {
-       inited, started, finished
-} e_s4u_async_state_t;
 
 /** @brief Asynchronous Actions
  *
@@ -28,7 +34,7 @@ protected:
        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;