Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_spsc_ring_t Struct Reference

#include <spsc_ring.h>

Data Fields

 ERROR_HEADER
_Atomic size_t head
 Consumer index. Only the consumer advances it.
_Atomic size_t tail
 Producer index. Only the producer advances it.
SRN_SPSC_RING_CAP_TYPE cap
SRN_SPSC_RING_CAP_TYPE mask
size_t elem_size
unsigned char * buf
 cap * elem_size bytes.

Detailed Description

Definition at line 45 of file spsc_ring.h.

Field Documentation

◆ buf

unsigned char* srn_spsc_ring_t::buf

cap * elem_size bytes.

Typically owned by who ever owns the ring itself.

Definition at line 60 of file spsc_ring.h.

◆ cap

SRN_SPSC_RING_CAP_TYPE srn_spsc_ring_t::cap

Definition at line 54 of file spsc_ring.h.

◆ elem_size

size_t srn_spsc_ring_t::elem_size

Definition at line 56 of file spsc_ring.h.

◆ ERROR_HEADER

srn_spsc_ring_t::ERROR_HEADER

Definition at line 46 of file spsc_ring.h.

◆ head

_Atomic size_t srn_spsc_ring_t::head

Consumer index. Only the consumer advances it.

Definition at line 49 of file spsc_ring.h.

◆ mask

SRN_SPSC_RING_CAP_TYPE srn_spsc_ring_t::mask

Definition at line 55 of file spsc_ring.h.

◆ tail

_Atomic size_t srn_spsc_ring_t::tail

Producer index. Only the producer advances it.

Definition at line 52 of file spsc_ring.h.


The documentation for this struct was generated from the following file: