From 910dbe729f7d122d03afe53bfee683c825952129 Mon Sep 17 00:00:00 2001 From: Frederic Suter Date: Fri, 22 Feb 2019 22:15:05 +0100 Subject: [PATCH] make destructor public --- include/simgrid/s4u/Mutex.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/simgrid/s4u/Mutex.hpp b/include/simgrid/s4u/Mutex.hpp index 06889d8c27..e1d391b442 100644 --- a/include/simgrid/s4u/Mutex.hpp +++ b/include/simgrid/s4u/Mutex.hpp @@ -32,12 +32,12 @@ class XBT_PUBLIC Mutex { simgrid::kernel::activity::MutexImpl* const pimpl_; explicit Mutex(simgrid::kernel::activity::MutexImpl* mutex) : pimpl_(mutex) {} - ~Mutex(); /* refcounting */ friend XBT_PUBLIC void intrusive_ptr_add_ref(Mutex* mutex); friend XBT_PUBLIC void intrusive_ptr_release(Mutex* mutex); public: + ~Mutex(); // No copy: /** You cannot create a new mutex by copying an existing one. Use MutexPtr instead */ Mutex(Mutex const&) = delete; -- 2.20.1