ARGOBOTS  1.1
Data Structures | Typedefs | Functions
fifo.c File Reference
#include "abti.h"
#include <time.h>
Include dependency graph for fifo.c:

Go to the source code of this file.

Data Structures

struct  data
 

Typedefs

typedef struct data data_t
 

Functions

static int pool_init (ABT_pool pool, ABT_pool_config config)
 
static int pool_free (ABT_pool pool)
 
static size_t pool_get_size (ABT_pool pool)
 
static void pool_push_shared (ABT_pool pool, ABT_unit unit)
 
static void pool_push_private (ABT_pool pool, ABT_unit unit)
 
static ABT_unit pool_pop_shared (ABT_pool pool)
 
static ABT_unit pool_pop_private (ABT_pool pool)
 
static ABT_unit pool_pop_wait (ABT_pool pool, double time_secs)
 
static ABT_unit pool_pop_timedwait (ABT_pool pool, double abstime_secs)
 
static int pool_remove_shared (ABT_pool pool, ABT_unit unit)
 
static int pool_remove_private (ABT_pool pool, ABT_unit unit)
 
static int pool_print_all (ABT_pool pool, void *arg, void(*print_fn)(void *, ABT_unit))
 
static ABT_bool unit_is_in_pool (ABT_unit unit)
 
static ABT_unit unit_create_from_thread (ABT_thread thread)
 
static void unit_free (ABT_unit *unit)
 
static data_tpool_get_data_ptr (void *p_data)
 
static ABTU_ret_err int spinlock_acquire_if_not_empty (data_t *p_data)
 
ABTU_ret_err int ABTI_pool_get_fifo_def (ABT_pool_access access, ABTI_pool_def *p_def)
 

Typedef Documentation

◆ data_t

typedef struct data data_t

Definition at line 38 of file fifo.c.

Function Documentation

◆ ABTI_pool_get_fifo_def()

ABTU_ret_err int ABTI_pool_get_fifo_def ( ABT_pool_access  access,
ABTI_pool_def p_def 
)

Definition at line 68 of file fifo.c.

Referenced by ABTI_pool_create_basic().

◆ pool_free()

static int pool_free ( ABT_pool  pool)
static

Definition at line 138 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_get_data_ptr()

static data_t* pool_get_data_ptr ( void *  p_data)
inlinestatic

◆ pool_get_size()

static size_t pool_get_size ( ABT_pool  pool)
static

Definition at line 149 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_init()

static int pool_init ( ABT_pool  pool,
ABT_pool_config  config 
)
static

Definition at line 110 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_pop_private()

static ABT_unit pool_pop_private ( ABT_pool  pool)
static

Definition at line 338 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_pop_shared()

static ABT_unit pool_pop_shared ( ABT_pool  pool)
static

Definition at line 303 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_pop_timedwait()

static ABT_unit pool_pop_timedwait ( ABT_pool  pool,
double  abstime_secs 
)
static

Definition at line 261 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_pop_wait()

static ABT_unit pool_pop_wait ( ABT_pool  pool,
double  time_secs 
)
static

Definition at line 212 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_print_all()

static int pool_print_all ( ABT_pool  pool,
void *  arg,
void(*)(void *, ABT_unit print_fn 
)
static

Definition at line 437 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_push_private()

static void pool_push_private ( ABT_pool  pool,
ABT_unit  unit 
)
static

Definition at line 185 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_push_shared()

static void pool_push_shared ( ABT_pool  pool,
ABT_unit  unit 
)
static

Definition at line 156 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_remove_private()

static int pool_remove_private ( ABT_pool  pool,
ABT_unit  unit 
)
static

Definition at line 404 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ pool_remove_shared()

static int pool_remove_shared ( ABT_pool  pool,
ABT_unit  unit 
)
static

Definition at line 368 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ spinlock_acquire_if_not_empty()

static ABTU_ret_err int spinlock_acquire_if_not_empty ( data_t p_data)
inlinestatic

Definition at line 45 of file fifo.c.

Referenced by pool_pop_shared(), pool_pop_timedwait(), and pool_pop_wait().

◆ unit_create_from_thread()

static ABT_unit unit_create_from_thread ( ABT_thread  thread)
static

Definition at line 474 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ unit_free()

static void unit_free ( ABT_unit unit)
static

Definition at line 481 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().

◆ unit_is_in_pool()

static ABT_bool unit_is_in_pool ( ABT_unit  unit)
static

Definition at line 467 of file fifo.c.

Referenced by ABTI_pool_get_fifo_def().