ARGOBOTS  dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
abti_eventual.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_EVENTUAL_H_INCLUDED
7 #define ABTI_EVENTUAL_H_INCLUDED
8 
9 /* Inlined functions for Eventual */
10 
11 static inline ABTI_eventual *ABTI_eventual_get_ptr(ABT_eventual eventual)
12 {
13 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
14  ABTI_eventual *p_eventual;
15  if (eventual == ABT_EVENTUAL_NULL) {
16  p_eventual = NULL;
17  } else {
18  p_eventual = (ABTI_eventual *)eventual;
19  }
20  return p_eventual;
21 #else
22  return (ABTI_eventual *)eventual;
23 #endif
24 }
25 
26 static inline ABT_eventual ABTI_eventual_get_handle(ABTI_eventual *p_eventual)
27 {
28 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
29  ABT_eventual h_eventual;
30  if (p_eventual == NULL) {
31  h_eventual = ABT_EVENTUAL_NULL;
32  } else {
33  h_eventual = (ABT_eventual)p_eventual;
34  }
35  return h_eventual;
36 #else
37  return (ABT_eventual)p_eventual;
38 #endif
39 }
40 
41 #endif /* ABTI_EVENTUAL_H_INCLUDED */
ABT_eventual
struct ABT_eventual_opaque * ABT_eventual
Eventual handle type.
Definition: abt.h:1015
ABT_EVENTUAL_NULL
#define ABT_EVENTUAL_NULL
Definition: abt.h:1113