From 3a40c8147d6fd8e2f8bc336ad15e95209abaf70e Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Wed, 27 Jan 2021 15:05:53 +0100 Subject: [PATCH] No need to make a simcall on mutex creation. --- src/s4u/s4u_Mutex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s4u/s4u_Mutex.cpp b/src/s4u/s4u_Mutex.cpp index 2bec1c841d..6034aeb2e0 100644 --- a/src/s4u/s4u_Mutex.cpp +++ b/src/s4u/s4u_Mutex.cpp @@ -44,7 +44,7 @@ bool Mutex::try_lock() */ MutexPtr Mutex::create() { - kernel::activity::MutexImpl* mutex = kernel::actor::simcall([] { return new kernel::activity::MutexImpl(); }); + auto* mutex = new kernel::activity::MutexImpl(); return MutexPtr(&mutex->mutex(), false); } -- 2.20.1