Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
bb::ipc::MpscDoorbell Struct Reference

Shared doorbell for waking consumer. More...

#include <mpsc_shm.hpp>

Public Attributes

std::atomic< uint32_t > seq
 
std::array< uint8_t, 60 > _pad0
 
std::atomic< bool > consumer_blocked
 
std::array< uint8_t, 63 > _pad1
 

Detailed Description

Shared doorbell for waking consumer.

Producers ring this when publishing data to wake the sleeping consumer. Carefully aligned to avoid false sharing between producer and consumer.

Definition at line 26 of file mpsc_shm.hpp.

Member Data Documentation

◆ _pad0

std::array<uint8_t, 60> bb::ipc::MpscDoorbell::_pad0

Definition at line 29 of file mpsc_shm.hpp.

◆ _pad1

std::array<uint8_t, 63> bb::ipc::MpscDoorbell::_pad1

Definition at line 33 of file mpsc_shm.hpp.

◆ consumer_blocked

std::atomic<bool> bb::ipc::MpscDoorbell::consumer_blocked

Definition at line 32 of file mpsc_shm.hpp.

◆ seq

std::atomic<uint32_t> bb::ipc::MpscDoorbell::seq

Definition at line 28 of file mpsc_shm.hpp.


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