From: Martin Quinson Date: Fri, 29 Jun 2018 23:12:50 +0000 (+0200) Subject: Revert "please sonar and remove unused types" X-Git-Tag: v3_21~592 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/01c1bf5558ed732f3d96b25c8ae25dbe83a3baf5 Revert "please sonar and remove unused types" 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. --- diff --git a/doc/doxygen/uhood_switch.doc b/doc/doxygen/uhood_switch.doc index b3bd850d6c..7247341ac1 100644 --- a/doc/doxygen/uhood_switch.doc +++ b/doc/doxygen/uhood_switch.doc @@ -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: diff --git a/include/simgrid/forward.h b/include/simgrid/forward.h index 180b156aab..4ce7e57926 100644 --- a/include/simgrid/forward.h +++ b/include/simgrid/forward.h @@ -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