X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/08e7455d67920bbd7a87f440d00f2c1e071314a0..8052f28d5b5a9d88b6724dff2e5e81dee10065d7:/include/simgrid/barrier.h diff --git a/include/simgrid/barrier.h b/include/simgrid/barrier.h index 24ee73239b..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-2021. 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. */ @@ -11,7 +11,7 @@ #include #ifdef __cplusplus -constexpr int SG_BARRIER_SERIAL_THREAD = -1; +constexpr bool SG_BARRIER_SERIAL_THREAD = true; #else #define SG_BARRIER_SERIAL_THREAD -1 #endif @@ -20,7 +20,7 @@ constexpr int SG_BARRIER_SERIAL_THREAD = -1; SG_BEGIN_DECL XBT_PUBLIC sg_bar_t sg_barrier_init(unsigned int count); -XBT_PUBLIC void sg_barrier_destroy(const_sg_bar_t bar); +XBT_PUBLIC void sg_barrier_destroy(sg_bar_t bar); XBT_PUBLIC int sg_barrier_wait(sg_bar_t bar); SG_END_DECL