ARGOBOTS  1.1
Functions | Variables
global.c File Reference
#include "abti.h"
Include dependency graph for global.c:

Go to the source code of this file.

Functions

static ABTU_ret_err int init_library (void)
 
static ABTU_ret_err int finailze_library (void)
 
int ABT_init (int argc, char **argv)
 Initialize the Argobots execution environment. More...
 
int ABT_finalize (void)
 Finalize the Argobots execution environment. More...
 
int ABT_initialized (void)
 Check if the Argobots execution environment has been initialized. More...
 

Variables

ABTI_globalgp_ABTI_global = NULL
 
static uint32_t g_ABTI_num_inits = 0
 
static ABTD_spinlock g_ABTI_init_lock = ABTD_SPINLOCK_STATIC_INITIALIZER()
 
static ABTD_atomic_uint32 g_ABTI_initialized
 

Function Documentation

◆ finailze_library()

static ABTU_ret_err int finailze_library ( void  )
static

Definition at line 276 of file global.c.

Referenced by ABT_finalize().

◆ init_library()

static ABTU_ret_err int init_library ( void  )
static

Definition at line 183 of file global.c.

Referenced by ABT_init().

Variable Documentation

◆ g_ABTI_init_lock

ABTD_spinlock g_ABTI_init_lock = ABTD_SPINLOCK_STATIC_INITIALIZER()
static

Definition at line 23 of file global.c.

Referenced by ABT_finalize(), and ABT_init().

◆ g_ABTI_initialized

ABTD_atomic_uint32 g_ABTI_initialized
static
Initial value:

Definition at line 25 of file global.c.

Referenced by ABT_initialized(), finailze_library(), and init_library().

◆ g_ABTI_num_inits

uint32_t g_ABTI_num_inits = 0
static

Definition at line 21 of file global.c.

Referenced by ABT_init(), and finailze_library().

◆ gp_ABTI_global

ABTI_global* gp_ABTI_global = NULL
ABTD_ATOMIC_UINT32_STATIC_INITIALIZER
#define ABTD_ATOMIC_UINT32_STATIC_INITIALIZER(val)
Definition: abtd_atomic.h:59