1 /* Public interface to the Link datatype */
3 /* Copyright (c) 2018-2020. The SimGrid Team. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #ifndef INCLUDE_SIMGRID_BARRIER_H_
9 #define INCLUDE_SIMGRID_BARRIER_H_
11 #include <simgrid/forward.h>
14 constexpr int SG_BARRIER_SERIAL_THREAD = -1;
16 #define SG_BARRIER_SERIAL_THREAD -1
22 XBT_PUBLIC sg_bar_t sg_barrier_init(unsigned int count);
23 XBT_PUBLIC void sg_barrier_destroy(const_sg_bar_t bar);
24 XBT_PUBLIC int sg_barrier_wait(sg_bar_t bar);
28 #endif /* INCLUDE_SIMGRID_BARRIER_H_ */