EM-ODP 4.4.0
Event Machine on ODP
Loading...
Searching...
No Matches
em_event_group_types.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <event_machine.h>
#include <event_machine/platform/env/environment.h>
Include dependency graph for em_event_group_types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  egrp_counter_t
 
struct  event_group_elem_t
 
struct  event_group_tbl_t
 

Macros

#define EGRP_CNT_BITS   24
 
#define EGRP_GEN_BITS   (64 - 2 * EGRP_CNT_BITS - 1)
 
#define EGRP_CNT_MAX   ((1ULL << EGRP_CNT_BITS) - 1)
 

Typedefs

typedef struct event_group_elem_t ENV_CACHE_LINE_ALIGNED
 

Functions

 COMPILE_TIME_ASSERT (sizeof(egrp_counter_t)==sizeof(uint64_t), EGRP_COUNTER_SIZE_ERROR)
 
 COMPILE_TIME_ASSERT (sizeof(egrp_counter_t) *8==2 *EGRP_CNT_BITS+EGRP_GEN_BITS+1, EGRP_COUNTER_BITS_ERROR)
 
 COMPILE_TIME_ASSERT (sizeof(event_group_elem_t) % ENV_CACHE_LINE_SIZE==0, EVENT_GROUP_ELEM_T__SIZE_ERROR)
 

Detailed Description

EM internal event group types & definitions

Definition in file em_event_group_types.h.

Macro Definition Documentation

◆ EGRP_CNT_BITS

#define EGRP_CNT_BITS   24

Definition at line 50 of file em_event_group_types.h.

◆ EGRP_CNT_MAX

#define EGRP_CNT_MAX   ((1ULL << EGRP_CNT_BITS) - 1)

Max value that can be represented by the event group counter, i.e., the maximum number of events that can be set via _apply() or _increment()

Definition at line 58 of file em_event_group_types.h.

◆ EGRP_GEN_BITS

#define EGRP_GEN_BITS   (64 - 2 * EGRP_CNT_BITS - 1)

Definition at line 51 of file em_event_group_types.h.

Typedef Documentation

◆ ENV_CACHE_LINE_ALIGNED

EM Event Group element