Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use Mutex::create() for sg_mutex_init().
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 13 Mar 2021 21:25:04 +0000 (22:25 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sat, 13 Mar 2021 21:25:04 +0000 (22:25 +0100)
commitf4e9eed9a710cd589a2ab070348121e9c4c3a861
treeb30f1454dc569678cef4b370e6b6d87349478642
parent96b5e52495fda1471457ea73d533f7fdeed92ddd
Use Mutex::create() for sg_mutex_init().

Also make constructor private to enforce usage of create(), and fix bogus destructor.

Wanted to make ~Mutex() private, but failed to make it compile :(
include/simgrid/s4u/Mutex.hpp
src/s4u/s4u_Mutex.cpp