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
Make SG_BARRIER_SERIAL_THREAD visible from C files too
[simgrid.git]
/
include
/
simgrid
/
barrier.h
diff --git
a/include/simgrid/barrier.h
b/include/simgrid/barrier.h
index
9c068be
..
2837633
100644
(file)
--- a/
include/simgrid/barrier.h
+++ b/
include/simgrid/barrier.h
@@
-10,6
+10,12
@@
#include <simgrid/forward.h>
+#ifdef __cplusplus
+constexpr int SG_BARRIER_SERIAL_THREAD = -1;
+#else
+#define SG_BARRIER_SERIAL_THREAD -1
+#endif
+
/* C interface */
SG_BEGIN_DECL()