Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
try to handle getopt internal global variable
[simgrid.git] / src / smpi / include / smpi_process.hpp
index 623abfa..af8fa3d 100644 (file)
@@ -33,10 +33,10 @@ class Process {
     std::string instance_id_;
     bool replaying_                 = false; /* is the process replaying a trace */
     msg_bar_t finalization_barrier_;
-    int return_value_ = 0;
     smpi_trace_call_location_t trace_call_loc_;
     simgrid::s4u::ActorPtr process_ = nullptr;
     smpi_privatization_region_t privatized_region_;
+    int optind=0; /*for getopt replacement */
 #if HAVE_PAPI
   /** Contains hardware data as read by PAPI **/
     int papi_event_set_;
@@ -74,10 +74,10 @@ class Process {
     void set_sampling(int s);
     int sampling();
     msg_bar_t finalization_barrier();
-    int return_value();
-    void set_return_value(int val);
     static void init(int *argc, char ***argv);
     simgrid::s4u::ActorPtr process();
+    int get_optind();
+    void set_optind(int optind);
 };