CNDP  22.08.0
cne_ring.h File Reference
#include <cne_common.h>
#include <cne_ring_api.h>

Go to the source code of this file.

Macros

#define CNE_RING_NAMESIZE   CNE_NAME_LEN
 

Detailed Description

CNE Ring

The Ring Manager is a fixed-size queue, implemented as a table of pointers. Head and tail pointers are modified atomically, allowing concurrent access to it. It has the following features:

  • FIFO (First In First Out)
  • Maximum size is fixed; the pointers are stored in a table.
  • Lockless implementation.
  • Multi- or single-consumer dequeue (default is single-consumer).
  • Multi- or single-producer enqueue (default is single-producer).
  • Bulk dequeue.
  • Bulk enqueue.

Note: the ring implementation is not preemptible. Refer to Programmer's guide/Cloud Native Environment/Multiple pthread/Known Issues/cne_ring for more information.

Definition in file cne_ring.h.

Macro Definition Documentation

◆ CNE_RING_NAMESIZE

#define CNE_RING_NAMESIZE   CNE_NAME_LEN

The maximum length of a ring name.

Definition at line 43 of file cne_ring.h.