ARGOBOTS  36a41b57298ad4e16b5ada8c95c81f00dfed4d3c
abti_mutex_attr.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_MUTEX_ATTR_H_INCLUDED
7 #define ABTI_MUTEX_ATTR_H_INCLUDED
8 
9 /* Inlined functions for mutex attributes */
10 
12 {
13 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
14  ABTI_mutex_attr *p_attr;
15  if (attr == ABT_MUTEX_ATTR_NULL) {
16  p_attr = NULL;
17  } else {
18  p_attr = (ABTI_mutex_attr *)attr;
19  }
20  return p_attr;
21 #else
22  return (ABTI_mutex_attr *)attr;
23 #endif
24 }
25 
27 {
28 #ifndef ABT_CONFIG_DISABLE_ERROR_CHECK
29  ABT_mutex_attr h_attr;
30  if (p_attr == NULL) {
31  h_attr = ABT_MUTEX_ATTR_NULL;
32  } else {
33  h_attr = (ABT_mutex_attr)p_attr;
34  }
35  return h_attr;
36 #else
37  return (ABT_mutex_attr)p_attr;
38 #endif
39 }
40 
41 #endif /* ABTI_MUTEX_ATTR_H_INCLUDED */
ABTI_mutex_attr_get_handle
static ABT_mutex_attr ABTI_mutex_attr_get_handle(ABTI_mutex_attr *p_attr)
Definition: abti_mutex_attr.h:26
ABTI_mutex_attr_get_ptr
static ABTI_mutex_attr * ABTI_mutex_attr_get_ptr(ABT_mutex_attr attr)
Definition: abti_mutex_attr.h:11
ABT_mutex_attr
struct ABT_mutex_attr_opaque * ABT_mutex_attr
Mutex attribute handle type.
Definition: abt.h:994
ABTI_mutex_attr
Definition: abti.h:197
ABT_MUTEX_ATTR_NULL
#define ABT_MUTEX_ATTR_NULL
Definition: abt.h:1110