A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
allow for programmatic creation of a disk
[simgrid.git]
/
src
/
s4u
/
s4u_Mutex.cpp
diff --git
a/src/s4u/s4u_Mutex.cpp
b/src/s4u/s4u_Mutex.cpp
index 2bec1c841d35a2d3433ae94e792957a304372c6e..6034aeb2e0b14dd7e2cb3c2e0cabcb4e5f3f7a62 100644
(file)
--- 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);
}