X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/94a6ea22dbd2f12d1015925d3c3fe7a95b38d2e3..02dd785d0212ccd8376c2ce4fd931942232fcafb:/include/simgrid/s4u/mutex.hpp?ds=sidebyside diff --git a/include/simgrid/s4u/mutex.hpp b/include/simgrid/s4u/mutex.hpp index 201f0710a9..bf4e00d1ca 100644 --- a/include/simgrid/s4u/mutex.hpp +++ b/include/simgrid/s4u/mutex.hpp @@ -6,17 +6,19 @@ #ifndef SIMGRID_S4U_MUTEX_HPP #define SIMGRID_S4U_MUTEX_HPP +#include #include -#include #include #include "simgrid/simix.h" namespace simgrid { namespace s4u { -XBT_PUBLIC_CLASS Mutex { +class ConditionVariable; +XBT_PUBLIC_CLASS Mutex { +friend ConditionVariable; public: Mutex() : mutex_(simcall_mutex_init()) {} @@ -56,6 +58,7 @@ public: private: simgrid::simix::Mutex* mutex_; }; + }} // namespace simgrid::s4u #endif /* SIMGRID_S4U_MUTEX_HPP */