ARGOBOTS  1059a7c2eb7e3f99f736a9c3a4f6ea476ac1b804
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Data Structures | Macros | Typedefs | Functions
abti_key.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ABTI_ktable_mem_header
 

Macros

#define ABTI_KEY_STATIC_INITIALIZER(f_destructor, id)
 
#define ABTI_KEY_ID_STACKABLE_SCHED   0
 
#define ABTI_KEY_ID_MIGRATION   1
 
#define ABTI_KEY_ID_END_   2
 
#define ABTI_KTABLE_DESC_SIZE   (ABTI_MEM_POOL_DESC_SIZE - sizeof(ABTI_ktable_mem_header))
 
#define ABTI_KTABLE_LOCKED   ((ABTI_ktable *)0x1)
 

Typedefs

typedef struct
ABTI_ktable_mem_header 
ABTI_ktable_mem_header
 

Functions

static ABTI_keyABTI_key_get_ptr (ABT_key key)
 
static ABT_key ABTI_key_get_handle (ABTI_key *p_key)
 
static int ABTI_ktable_is_valid (ABTI_ktable *p_ktable)
 
static ABTU_ret_err int ABTI_ktable_create (ABTI_local *p_local, ABTI_ktable **pp_ktable)
 
static ABTU_ret_err int ABTI_ktable_alloc_elem (ABTI_local *p_local, ABTI_ktable *p_ktable, size_t size, void **pp_mem)
 
static uint32_t ABTI_ktable_get_idx (ABTI_key *p_key, int size)
 
static ABTU_ret_err int ABTI_ktable_set_impl (ABTI_local *p_local, ABTI_ktable *p_ktable, ABTI_key *p_key, void *value, ABT_bool is_safe)
 
static ABTU_ret_err int ABTI_ktable_set (ABTI_local *p_local, ABTD_atomic_ptr *pp_ktable, ABTI_key *p_key, void *value)
 
static ABTU_ret_err int ABTI_ktable_set_unsafe (ABTI_local *p_local, ABTI_ktable **pp_ktable, ABTI_key *p_key, void *value)
 
static void * ABTI_ktable_get (ABTD_atomic_ptr *pp_ktable, ABTI_key *p_key)
 

Macro Definition Documentation

#define ABTI_KEY_ID_END_   2

Definition at line 49 of file abti_key.h.

#define ABTI_KEY_ID_MIGRATION   1

Definition at line 48 of file abti_key.h.

#define ABTI_KEY_ID_STACKABLE_SCHED   0

Definition at line 47 of file abti_key.h.

#define ABTI_KEY_STATIC_INITIALIZER (   f_destructor,
  id 
)
Value:
{ \
f_destructor, id \
}

Definition at line 42 of file abti_key.h.

#define ABTI_KTABLE_DESC_SIZE   (ABTI_MEM_POOL_DESC_SIZE - sizeof(ABTI_ktable_mem_header))

Definition at line 56 of file abti_key.h.

Referenced by ABTI_ktable_alloc_elem(), and ABTI_ktable_create().

#define ABTI_KTABLE_LOCKED   ((ABTI_ktable *)0x1)

Definition at line 59 of file abti_key.h.

Referenced by ABTI_ktable_set(), and thread_free().

Typedef Documentation

Function Documentation

static ABT_key ABTI_key_get_handle ( ABTI_key p_key)
inlinestatic

Definition at line 26 of file abti_key.h.

Referenced by ABT_key_create().

static ABTI_key* ABTI_key_get_ptr ( ABT_key  key)
inlinestatic
static ABTU_ret_err int ABTI_ktable_alloc_elem ( ABTI_local p_local,
ABTI_ktable p_ktable,
size_t  size,
void **  pp_mem 
)
inlinestatic

Definition at line 117 of file abti_key.h.

Referenced by ABTI_ktable_set_impl().

static ABTU_ret_err int ABTI_ktable_create ( ABTI_local p_local,
ABTI_ktable **  pp_ktable 
)
inlinestatic

Definition at line 67 of file abti_key.h.

Referenced by ABTI_ktable_set(), and ABTI_ktable_set_unsafe().

static void* ABTI_ktable_get ( ABTD_atomic_ptr pp_ktable,
ABTI_key p_key 
)
inlinestatic
static uint32_t ABTI_ktable_get_idx ( ABTI_key p_key,
int  size 
)
inlinestatic

Definition at line 161 of file abti_key.h.

Referenced by ABTI_ktable_get(), and ABTI_ktable_set_impl().

static int ABTI_ktable_is_valid ( ABTI_ktable p_ktable)
inlinestatic

Definition at line 60 of file abti_key.h.

Referenced by ABTI_ktable_get(), and ABTI_ktable_set().

static ABTU_ret_err int ABTI_ktable_set ( ABTI_local p_local,
ABTD_atomic_ptr pp_ktable,
ABTI_key p_key,
void *  value 
)
inlinestatic

Definition at line 224 of file abti_key.h.

Referenced by ABT_key_set(), ABT_thread_set_specific(), and ABTI_thread_get_mig_data().

static ABTU_ret_err int ABTI_ktable_set_impl ( ABTI_local p_local,
ABTI_ktable p_ktable,
ABTI_key p_key,
void *  value,
ABT_bool  is_safe 
)
inlinestatic

Definition at line 167 of file abti_key.h.

Referenced by ABTI_ktable_set(), and ABTI_ktable_set_unsafe().

static ABTU_ret_err int ABTI_ktable_set_unsafe ( ABTI_local p_local,
ABTI_ktable **  pp_ktable,
ABTI_key p_key,
void *  value 
)
inlinestatic

Definition at line 265 of file abti_key.h.

Referenced by ythread_create().