ARGOBOTS
dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
src
include
abti_stream_barrier.h
Go to the documentation of this file.
1
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
2
/*
3
* See COPYRIGHT in top-level directory.
4
*/
5
6
#ifndef ABTI_XSTREAM_BARRIER_H_INCLUDED
7
#define ABTI_XSTREAM_BARRIER_H_INCLUDED
8
9
static
inline
ABTI_xstream_barrier
*
10
ABTI_xstream_barrier_get_ptr
(
ABT_xstream_barrier
barrier)
11
{
12
#ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
13
ABTI_xstream_barrier
*p_barrier;
14
if
(barrier ==
ABT_XSTREAM_BARRIER_NULL
) {
15
p_barrier = NULL;
16
}
else
{
17
p_barrier = (
ABTI_xstream_barrier
*)barrier;
18
}
19
return
p_barrier;
20
#else
21
return
(
ABTI_xstream_barrier
*)barrier;
22
#endif
23
}
24
25
static
inline
ABT_xstream_barrier
26
ABTI_xstream_barrier_get_handle
(
ABTI_xstream_barrier
*p_barrier)
27
{
28
#ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
29
ABT_xstream_barrier
h_barrier;
30
if
(p_barrier == NULL) {
31
h_barrier =
ABT_XSTREAM_BARRIER_NULL
;
32
}
else
{
33
h_barrier = (
ABT_xstream_barrier
)p_barrier;
34
}
35
return
h_barrier;
36
#else
37
return
(
ABT_xstream_barrier
)p_barrier;
38
#endif
39
}
40
41
#endif
/* ABTI_XSTREAM_BARRIER_H_INCLUDED */
ABTI_xstream_barrier_get_ptr
static ABTI_xstream_barrier * ABTI_xstream_barrier_get_ptr(ABT_xstream_barrier barrier)
Definition:
abti_stream_barrier.h:10
ABTI_xstream_barrier
Definition:
abti.h:520
ABTI_xstream_barrier_get_handle
static ABT_xstream_barrier ABTI_xstream_barrier_get_handle(ABTI_xstream_barrier *p_barrier)
Definition:
abti_stream_barrier.h:26
ABT_XSTREAM_BARRIER_NULL
#define ABT_XSTREAM_BARRIER_NULL
Definition:
abt.h:1099
ABT_xstream_barrier
struct ABT_xstream_barrier_opaque * ABT_xstream_barrier
Execution-stream barrier handle type.
Definition:
abt.h:838
Generated on Fri Jan 28 2022 04:21:53 for ARGOBOTS by
1.8.17