Struct pcqueue

Struct Documentation

struct pcqueue

Producer-consumer queue, providing thread-safe access to data at both ends of a FIFO.

Public Members

struct fifo fifo

The underlying FIFO.

struct mutex mutex

Mutex protecting fifo.

struct csem slots_avail

Semaphore counting empty slots in FIFO.

struct csem slots_inuse

Semaphore counting occupied/allocated slots in FIFO.

uint32_t flags

Configuration flags—same as fifo.