X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/04fa61785ae1ecb5e5233ef0cb6d24145120d95e..a3f2c3c47a2cdae9e34c468a0b548f085b92a188:/include/simgrid/s4u/Mutex.hpp diff --git a/include/simgrid/s4u/Mutex.hpp b/include/simgrid/s4u/Mutex.hpp index 0b3ebc8c59..93db75ea3f 100644 --- a/include/simgrid/s4u/Mutex.hpp +++ b/include/simgrid/s4u/Mutex.hpp @@ -28,6 +28,9 @@ class ConditionVariable; * Instead, you should use the present class, that is a drop-in replacement of * [std::mutex](http://en.cppreference.com/w/cpp/thread/mutex). * + * As for any S4U object, Mutexes are using the @ref "RAII idiom" s4u_raii for memory management. + * Use createMutex() to get a ::MutexPtr to a newly created mutex and only manipulate ::MutexPtr. + * */ XBT_PUBLIC_CLASS Mutex { friend ConditionVariable;