Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix BoostContext #include
[simgrid.git] / include / simgrid / s4u / async.hpp
index 6500b79..9ef1778 100644 (file)
@@ -12,6 +12,7 @@
 #include <xbt/misc.h>
 
 #include <simgrid/s4u/forward.hpp>
+#include "simgrid/forward.h"
 
 SG_BEGIN_DECL();
 typedef enum {
@@ -33,10 +34,10 @@ protected:
   virtual ~Async();
   
 private:
-  struct s_smx_synchro *p_inferior = NULL;
+  simgrid::simix::Synchro *inferior_ = NULL;
 
 private:
-  e_s4u_async_state_t p_state = inited;
+  e_s4u_async_state_t state_ = inited;
 public:
   /** Starts a previously created async.
    *
@@ -53,10 +54,10 @@ public:
   /** Cancel that async */
   //virtual void cancel();
   /** Retrieve the current state of the async */
-  e_s4u_async_state_t getState() {return p_state;}
+  e_s4u_async_state_t getState() {return state_;}
 
 private:
-  double p_remains = 0;
+  double remains_ = 0;
 public:
   /** Get the remaining amount of work that this Async entails. When it's 0, it's done. */
   double getRemains();
@@ -66,12 +67,12 @@ public:
   void setRemains(double remains);
 
 private:
-  void *p_userData = NULL;
+  void *userData_ = NULL;
 public:
   /** Put some user data onto the Async */
-  void setUserData(void *data) {p_userData=data;}
+  void setUserData(void *data) {userData_=data;}
   /** Retrieve the user data of the Async */
-  void *getUserData() { return p_userData; }
+  void *getUserData() { return userData_; }
 }; // class
 
 }}; // Namespace simgrid::s4u