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

Go to the source code of this file.

Data Structures

struct  queue_group_elem_t
 
struct  queue_group_tbl_t
 
struct  queue_group_pool_t
 

Macros

#define S_(x)   #x
 
#define S(x)   S_(x)
 

Typedefs

typedef struct queue_group_elem_t ENV_CACHE_LINE_ALIGNED
 
typedef struct queue_group_tbl_t queue_group_tbl_t
 
typedef struct queue_group_pool_t queue_group_pool_t
 

Functions

 COMPILE_TIME_ASSERT (EM_QUEUE_GROUP_NAME_LEN<=ODP_SCHED_GROUP_NAME_LEN, EM_QUEUE_GROUP_NAME_LEN_ERROR)
 
 COMPILE_TIME_ASSERT (sizeof(EM_QUEUE_GROUP_DEFAULT_NAME)<=EM_QUEUE_GROUP_NAME_LEN, EM_QUEUE_GROUP_DEFAULT_NAME_SIZE_ERROR)
 
 COMPILE_TIME_ASSERT (sizeof(EM_QUEUE_GROUP_CORE_BASE_NAME)+sizeof(S(EM_MAX_CORES))<=EM_QUEUE_GROUP_NAME_LEN, EM_QUEUE_GROUP_CORE_BASE_NAME_SIZE_ERROR)
 
 COMPILE_TIME_ASSERT (sizeof(queue_group_elem_t) % ENV_CACHE_LINE_SIZE==0, QUEUE_GROUP_ELEM_T__SIZE_ERROR)
 

Detailed Description

EM internal queue group types & definitions

Definition in file em_queue_group_types.h.

Macro Definition Documentation

◆ S

#define S (   x)    S_(x)

Definition at line 56 of file em_queue_group_types.h.

◆ S_

#define S_ (   x)    #x

Definition at line 55 of file em_queue_group_types.h.

Typedef Documentation

◆ ENV_CACHE_LINE_ALIGNED

EM queue group element

◆ queue_group_pool_t

Pool of free queue groups

Using two objpools:

  • one for the core specific queue groups to
  • one for the rest of the queue groups

◆ queue_group_tbl_t

EM queue group element table