X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/00b2e701ab8ca3dd350bb8e9d65313986cabe8f0..aad6b6c4c7b1454dd284f822ba6f52e790f42c6e:/include/simgrid/barrier.h diff --git a/include/simgrid/barrier.h b/include/simgrid/barrier.h index 72f990e695..a3c7da0a7e 100644 --- a/include/simgrid/barrier.h +++ b/include/simgrid/barrier.h @@ -1,6 +1,6 @@ -/* Public interface to the Link datatype */ +/* Public interface to the Barrier datatype */ -/* Copyright (c) 2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2023. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -10,13 +10,19 @@ #include +#ifdef __cplusplus +constexpr bool SG_BARRIER_SERIAL_THREAD = true; +#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_ */