X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/aa19b8ec2814d04500c24d5df65a4e620e8e8969..6bc18b576fa4a890d8b9916d292ca67dfbf60dd3:/include/simgrid/s4u/Mutex.hpp diff --git a/include/simgrid/s4u/Mutex.hpp b/include/simgrid/s4u/Mutex.hpp index 4230a984ed..ae785f4841 100644 --- a/include/simgrid/s4u/Mutex.hpp +++ b/include/simgrid/s4u/Mutex.hpp @@ -29,8 +29,10 @@ class ConditionVariable; * */ class XBT_PUBLIC Mutex { +#ifndef DOXYGEN friend ConditionVariable; friend simgrid::kernel::activity::MutexImpl; +#endif simgrid::kernel::activity::MutexImpl* pimpl_; explicit Mutex(simgrid::kernel::activity::MutexImpl* mutex) : pimpl_(mutex) {} @@ -48,11 +50,15 @@ public: Mutex& operator=(Mutex const&) = delete; /** Constructs a new mutex */ - static Ptr createMutex(); + static Ptr create(); void lock(); void unlock(); bool try_lock(); + + // deprecated + /** @deprecated Mutex::create() */ + XBT_ATTRIB_DEPRECATED_v323("Please use Mutex::create()") static Ptr createMutex() { return create(); } }; using MutexPtr = Mutex::Ptr;