API Reference Manual  1.45.0
api/spec/barrier.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2013-2018 Linaro Limited
3  */
4 
11 #ifndef ODP_API_SPEC_BARRIER_H_
12 #define ODP_API_SPEC_BARRIER_H_
13 #include <odp/visibility_begin.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
42 void odp_barrier_init(odp_barrier_t *barr, int count);
43 
54 
59 #ifdef __cplusplus
60 }
61 #endif
62 
63 #include <odp/visibility_end.h>
64 #endif
void odp_barrier_init(odp_barrier_t *barr, int count)
Initialize barrier with thread count.
void odp_barrier_wait(odp_barrier_t *barr)
Synchronize thread execution on barrier.