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
Merge branch 'udpor-phase4' into 'master'
[simgrid.git]
/
src
/
xbt
/
OsSemaphore.hpp
diff --git
a/src/xbt/OsSemaphore.hpp
b/src/xbt/OsSemaphore.hpp
index
2b7e1f2
..
821075f
100644
(file)
--- a/
src/xbt/OsSemaphore.hpp
+++ b/
src/xbt/OsSemaphore.hpp
@@
-22,7
+22,7
@@
public:
inline void release()
{
-
std::unique
_lock lock(mutex_);
+
const std::scoped
_lock lock(mutex_);
++capa_;
condition_.notify_one();
}