EM-ODP  3.7.0
Event Machine on ODP
em_atomic_group.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define invalid_atomic_group(atomic_group)   ((unsigned int)agrp_hdl2idx((atomic_group)) >= EM_MAX_ATOMIC_GROUPS)
 

Functions

em_status_t atomic_group_init (atomic_group_tbl_t *const atomic_group_tbl, atomic_group_pool_t *const atomic_group_pool)
 
em_atomic_group_t atomic_group_alloc (void)
 
em_status_t atomic_group_free (em_atomic_group_t atomic_group)
 
void atomic_group_remove_queue (queue_elem_t *const q_elem)
 
void atomic_group_dispatch (odp_event_t odp_evtbl[], const int num_events, const queue_elem_t *q_elem)
 
unsigned int atomic_group_count (void)
 
void print_atomic_group_info (void)
 
void print_atomic_group_queues (em_atomic_group_t ag)
 
void print_ag_elem_info (void)
 

Detailed Description

EM internal atomic group functions

Definition in file em_atomic_group.h.

Function Documentation

◆ atomic_group_alloc()

em_atomic_group_t atomic_group_alloc ( void  )

Dynamic atomic group allocation

Definition at line 89 of file em_atomic_group.c.

◆ atomic_group_init()

em_status_t atomic_group_init ( atomic_group_tbl_t *const  atomic_group_tbl,
atomic_group_pool_t *const  atomic_group_pool 
)

Atomic group inits done at global init (once at startup on one core)

Definition at line 38 of file em_atomic_group.c.

◆ atomic_group_remove_queue()

void atomic_group_remove_queue ( queue_elem_t *const  q_elem)

Called by em_queue_delete() to remove the queue from the atomic group list

Definition at line 126 of file em_atomic_group.c.

◆ print_atomic_group_info()

void print_atomic_group_info ( void  )

Print information about all atomic groups

Definition at line 330 of file em_atomic_group.c.

◆ print_atomic_group_queues()

void print_atomic_group_queues ( em_atomic_group_t  ag)

Print information about all queues of the given atomic group

Definition at line 401 of file em_atomic_group.c.