Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename kernel::activity::Synchro into kernel::activity::ActivityImpl
[simgrid.git] / src / kernel / activity / ActivityImpl.hpp
similarity index 59%
rename from src/kernel/activity/Synchro.h
rename to src/kernel/activity/ActivityImpl.hpp
index 2146efb..94b8590 100644 (file)
@@ -3,8 +3,8 @@
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
-#ifndef _SIMIX_SYNCHRO_HPP
-#define _SIMIX_SYNCHRO_HPP
+#ifndef SIMGRID_KERNEL_ACTIVITY_ACTIVITYIMPL_HPP
+#define SIMGRID_KERNEL_ACTIVITY_ACTIVITYIMPL_HPP
 
 #include <string>
 #include <list>
 #include <xbt/base.h>
 #include "simgrid/forward.h"
 
-#ifdef __cplusplus
-
 #include <simgrid/simix.hpp>
 
 namespace simgrid {
 namespace kernel {
 namespace activity {
 
-  XBT_PUBLIC_CLASS Synchro {
+  XBT_PUBLIC_CLASS ActivityImpl {
   public:
-    Synchro();
-    virtual ~Synchro();
-    e_smx_state_t state = SIMIX_WAITING; /* State of the synchro */
-    std::string name;                  /* synchro name if any */
-    std::list<smx_simcall_t> simcalls; /* List of simcalls waiting for this synchro */
+    ActivityImpl();
+    virtual ~ActivityImpl();
+    e_smx_state_t state = SIMIX_WAITING; /* State of the activity */
+    std::string name;                    /* Activity name if any */
+    std::list<smx_simcall_t> simcalls;   /* List of simcalls waiting for this activity */
 
     virtual void suspend()=0;
     virtual void resume()=0;
@@ -38,9 +36,5 @@ namespace activity {
     int refcount = 1;
   };
 }}} // namespace simgrid::kernel::activity
-#else /* not C++ */
-
-
-#endif
 
-#endif
+#endif /* SIMGRID_KERNEL_ACTIVITY_ACTIVITYIMPL_HPP */