ARGOBOTS  dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
abti_pool_config.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_CONFIG_H_INCLUDED
7 #define ABTI_POOL_CONFIG_H_INCLUDED
8 
9 /* Inlined functions for pool config */
10 
12 {
13 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
14  ABTI_pool_config *p_config;
15  if (config == ABT_POOL_CONFIG_NULL) {
16  p_config = NULL;
17  } else {
18  p_config = (ABTI_pool_config *)config;
19  }
20  return p_config;
21 #else
22  return (ABTI_pool_config *)config;
23 #endif
24 }
25 
26 static inline ABT_pool_config
28 {
29 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
30  ABT_pool_config h_config;
31  if (p_config == NULL) {
32  h_config = ABT_POOL_CONFIG_NULL;
33  } else {
34  h_config = (ABT_pool_config)p_config;
35  }
36  return h_config;
37 #else
38  return (ABT_pool_config)p_config;
39 #endif
40 }
41 
42 #endif /* ABTI_POOL_CONFIG_H_INCLUDED */
ABTI_pool_config_get_handle
static ABT_pool_config ABTI_pool_config_get_handle(ABTI_pool_config *p_config)
Definition: abti_pool_config.h:27
ABT_POOL_CONFIG_NULL
#define ABT_POOL_CONFIG_NULL
Definition: abt.h:1103
ABT_pool_config
struct ABT_pool_config_opaque * ABT_pool_config
Pool configuration handle type.
Definition: abt.h:885
ABTI_pool_config
Definition: abti.h:418
ABTI_pool_config_get_ptr
static ABTI_pool_config * ABTI_pool_config_get_ptr(ABT_pool_config config)
Definition: abti_pool_config.h:11