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
Enforce "Rule-of-Three/Five".
[simgrid.git]
/
examples
/
s4u
/
synchro-mutex
/
s4u-synchro-mutex.cpp
diff --git
a/examples/s4u/synchro-mutex/s4u-synchro-mutex.cpp
b/examples/s4u/synchro-mutex/s4u-synchro-mutex.cpp
index
4f8b519
..
e7819f7
100644
(file)
--- a/
examples/s4u/synchro-mutex/s4u-synchro-mutex.cpp
+++ b/
examples/s4u/synchro-mutex/s4u-synchro-mutex.cpp
@@
-6,7
+6,7
@@
#include <mutex> /* std::mutex and std::lock_guard */
#include "simgrid/s4u.hpp" /* All of S4U */
-#define NB_ACTOR 6
+constexpr int NB_ACTOR = 6;
XBT_LOG_NEW_DEFAULT_CATEGORY(s4u_test, "a sample log category");