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

A channel, the per-worker submission and completion ring pair. More...

#include <internal.h>

Collaboration diagram for srn_reactor_io_channel_t:
[legend]

Data Fields

srn_spsc_ring_tsq
srn_spsc_ring_tcq
size_t inflight
 Operations submitted on this channel and not yet consumed.

Detailed Description

A channel, the per-worker submission and completion ring pair.

Definition at line 30 of file internal.h.

Field Documentation

◆ cq

srn_spsc_ring_t* srn_reactor_io_channel_t::cq

Definition at line 34 of file internal.h.

◆ inflight

size_t srn_reactor_io_channel_t::inflight

Operations submitted on this channel and not yet consumed.

Touched only by the channel's owning worker os thread (the submit path bumps it, the consume path drops it), so it needs no atomics. Admission control caps it at the ring capacity, which is what makes a full SQ or CQ impossible.

Definition at line 40 of file internal.h.

◆ sq

srn_spsc_ring_t* srn_reactor_io_channel_t::sq

Definition at line 32 of file internal.h.


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