ARGOBOTS  dce6e727ffc4ca5b3ffc04cb9517c6689be51ec5
abti_sched_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_SCHED_CONFIG_H_INCLUDED
7 #define ABTI_SCHED_CONFIG_H_INCLUDED
8 
9 /* Inlined functions for scheduler config */
10 
11 static inline ABTI_sched_config *
13 {
14 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
15  ABTI_sched_config *p_config;
16  if (config == ABT_SCHED_CONFIG_NULL) {
17  p_config = NULL;
18  } else {
19  p_config = (ABTI_sched_config *)config;
20  }
21  return p_config;
22 #else
23  return (ABTI_sched_config *)config;
24 #endif
25 }
26 
27 static inline ABT_sched_config
29 {
30 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
31  ABT_sched_config h_config;
32  if (p_config == NULL) {
33  h_config = ABT_SCHED_CONFIG_NULL;
34  } else {
35  h_config = (ABT_sched_config)p_config;
36  }
37  return h_config;
38 #else
39  return (ABT_sched_config)p_config;
40 #endif
41 }
42 
43 #endif /* ABTI_SCHED_CONFIG_H_INCLUDED */
ABT_sched_config
struct ABT_sched_config_opaque * ABT_sched_config
Scheduler configuration handle type.
Definition: abt.h:852
ABTI_sched_config
Definition: abti.h:344
ABTI_sched_config_get_handle
static ABT_sched_config ABTI_sched_config_get_handle(ABTI_sched_config *p_config)
Definition: abti_sched_config.h:28
ABT_SCHED_CONFIG_NULL
#define ABT_SCHED_CONFIG_NULL
Definition: abt.h:1101
ABTI_sched_config_get_ptr
static ABTI_sched_config * ABTI_sched_config_get_ptr(ABT_sched_config config)
Definition: abti_sched_config.h:12