Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Preserve on_exit funcions between restarts.
[simgrid.git] / src / s4u / s4u_Mutex.cpp
index 5e0b6a7943cfc7d41adcd5b89b8f9eb75210257b..2f90b265d9693534c5712875e748871dd9f1f6ca 100644 (file)
@@ -42,7 +42,7 @@ bool Mutex::try_lock()
  */
 MutexPtr Mutex::create()
 {
-  smx_mutex_t mutex = simcall_mutex_init();
+  kernel::activity::MutexImpl* mutex = simix::simcall([] { return new kernel::activity::MutexImpl(); });
   return MutexPtr(&mutex->mutex(), false);
 }