Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "please sonar and remove unused types"
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 29 Jun 2018 23:12:50 +0000 (01:12 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 29 Jun 2018 23:12:58 +0000 (01:12 +0200)
These types are used when simix.h is loaded from a C file. See eg
https://ci.inria.fr/simgrid/job/SimGrid-Multi/5639/build_mode=Debug,node=simgrid-debian8-64-dynamic-analysis/console

This reverts commit 83091276959030bb6b031127944400cdc71d214c.

doc/doxygen/uhood_switch.doc
include/simgrid/forward.h

index b3bd850..7247341 100644 (file)
@@ -629,6 +629,7 @@ which can be exposed using the same API as `std::condition_variable`:
 @code{cpp}
 class ConditionVariable {
 private:
+  friend s_smx_cond_t;
   smx_cond_t cond_;
   ConditionVariable(smx_cond_t cond) : cond_(cond) {}
 public:
index 180b156..4ce7e57 100644 (file)
@@ -157,6 +157,10 @@ typedef struct kernel_Activity* smx_activity_t;
 
 typedef struct s_smx_context* smx_context_t;
 typedef struct s_smx_actor* smx_actor_t;
+typedef struct s_smx_cond_t* smx_cond_t;
+typedef struct s_smx_mutex* smx_mutex_t;
+typedef struct s_smx_mailbox* smx_mailbox_t;
+typedef struct s_surf_storage* surf_storage_t;
 
 #endif