X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cc64594ed28e7a31852c8d8772769962ccef377e..a3aa914a86e54aa18beb5cbfb892ce8f0d48444e:/include/simgrid/s4u/Mutex.hpp diff --git a/include/simgrid/s4u/Mutex.hpp b/include/simgrid/s4u/Mutex.hpp index e81c81555d..5feed70146 100644 --- a/include/simgrid/s4u/Mutex.hpp +++ b/include/simgrid/s4u/Mutex.hpp @@ -40,8 +40,6 @@ class XBT_PUBLIC Mutex { friend XBT_PUBLIC void intrusive_ptr_release(Mutex* mutex); public: - using Ptr = boost::intrusive_ptr; - // No copy: /** You cannot create a new mutex by copying an existing one. Use MutexPtr instead */ Mutex(Mutex const&) = delete; @@ -49,7 +47,7 @@ public: Mutex& operator=(Mutex const&) = delete; /** Constructs a new mutex */ - static Ptr create(); + static MutexPtr create(); void lock(); void unlock(); @@ -57,11 +55,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 */