Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Properly stringify, snake_case and cleanups in k::ExecImpl
[simgrid.git] / src / kernel / activity / ActivityImpl.hpp
index dba9a7a..31b4b4b 100644 (file)
@@ -22,10 +22,11 @@ namespace activity {
 class XBT_PUBLIC ActivityImpl {
 public:
   ActivityImpl();
+  explicit ActivityImpl(std::string name) : name_(name) {}
   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 */
+  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;