Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[S4U] Cosmetics
[simgrid.git] / include / simgrid / s4u / Mutex.hpp
index 4230a98..b4df2e8 100644 (file)
@@ -48,11 +48,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;