ARGOBOTS  4dc37e16e1b227a480715ab67dae1dcfb4d2d4e0
abti_pool_user_def.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_POOL_USER_DEF_H_INCLUDED
7 #define ABTI_POOL_USER_DEF_H_INCLUDED
8 
9 /* Inlined functions for pool user definitions */
10 
11 static inline ABTI_pool_user_def *
12 ABTI_pool_user_def_get_ptr(ABT_pool_user_def def)
13 {
14 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
15  ABTI_pool_user_def *p_def;
16  if (def == ABT_POOL_USER_DEF_NULL) {
17  p_def = NULL;
18  } else {
19  p_def = (ABTI_pool_user_def *)def;
20  }
21  return p_def;
22 #else
23  return (ABTI_pool_user_def *)def;
24 #endif
25 }
26 
27 static inline ABT_pool_user_def
28 ABTI_pool_user_def_get_handle(ABTI_pool_user_def *p_def)
29 {
30 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
31  ABT_pool_user_def h_def;
32  if (p_def == NULL) {
33  h_def = ABT_POOL_USER_DEF_NULL;
34  } else {
35  h_def = (ABT_pool_user_def)p_def;
36  }
37  return h_def;
38 #else
39  return (ABT_pool_user_def)p_def;
40 #endif
41 }
42 
43 #endif /* ABTI_POOL_USER_DEF_H_INCLUDED */
ABT_pool_user_def
struct ABT_pool_def * ABT_pool_user_def
Pool definition.
Definition: abt.h:900
ABT_pool_def
A struct that defines a pool.
Definition: abt.h:2049
ABT_POOL_USER_DEF_NULL
#define ABT_POOL_USER_DEF_NULL
Definition: abt.h:1118