Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix windows build
[simgrid.git] / include / simgrid / s4u / Actor.hpp
index 0a14c7d..72a5c6e 100644 (file)
@@ -202,7 +202,9 @@ public:
 
   // ***** Methods *****
 
-  /** Retrieves the name of that actor */
+  /** Retrieves the name of that actor as a C string */
+  const char* cname();
+  /** Retrieves the name of that actor as a C++ string */
   simgrid::xbt::string name();
   /** Retrieves the host on which that actor is running */
   s4u::Host* host();
@@ -242,7 +244,6 @@ public:
   /** Ask kindly to all actors to die. Only the issuer will survive. */
   static void killAll();
 
-protected:
   /** Returns the internal implementation of this actor */
   simix::ActorImpl* getImpl();
 };
@@ -293,10 +294,10 @@ namespace this_actor {
   XBT_PUBLIC(int) pid();
 
   /** @brief Returns the PPID of the current actor. */
-  int ppid();
+  XBT_PUBLIC(int) ppid();
 
   /** @brief Returns the name of the current actor. */
-  std::string name();
+  XBT_PUBLIC(std::string) name();
 };
 
 /** @} */