X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/537b55f6d4bf8ede2526c2bd6cf79bd38b465dac..3958c62bc542feb7c28818441ae6cdd56e7bf596:/include/simgrid/s4u/Mutex.hpp diff --git a/include/simgrid/s4u/Mutex.hpp b/include/simgrid/s4u/Mutex.hpp index b4df2e8b42..4c8b9207fa 100644 --- a/include/simgrid/s4u/Mutex.hpp +++ b/include/simgrid/s4u/Mutex.hpp @@ -12,8 +12,6 @@ namespace simgrid { namespace s4u { -class ConditionVariable; - /** @brief A classical mutex, but blocking in the simulation world * @ingroup s4u_api * @@ -25,12 +23,13 @@ class ConditionVariable; * ; - // No copy: /** You cannot create a new mutex by copying an existing one. Use MutexPtr instead */ Mutex(Mutex const&) = delete; @@ -48,7 +45,7 @@ public: Mutex& operator=(Mutex const&) = delete; /** Constructs a new mutex */ - static Ptr create(); + static MutexPtr create(); void lock(); void unlock(); @@ -56,11 +53,9 @@ public: // deprecated /** @deprecated Mutex::create() */ - XBT_ATTRIB_DEPRECATED_v323("Please use Mutex::create()") static Ptr createMutex() { return create(); } + XBT_ATTRIB_DEPRECATED_v323("Please use Mutex::create()") static MutexPtr createMutex() { return create(); } }; -using MutexPtr = Mutex::Ptr; - }} // namespace simgrid::s4u #endif /* SIMGRID_S4U_MUTEX_HPP */