Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make mailbox matching functions return a bool.
[simgrid.git] / include / simgrid / barrier.h
index 9c068be..83347fe 100644 (file)
 
 #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()
+SG_BEGIN_DECL
 
 XBT_PUBLIC sg_bar_t sg_barrier_init(unsigned int count);
 XBT_PUBLIC void sg_barrier_destroy(sg_bar_t bar);
 XBT_PUBLIC int sg_barrier_wait(sg_bar_t bar);
 
-SG_END_DECL()
+SG_END_DECL
 
 #endif /* INCLUDE_SIMGRID_BARRIER_H_ */