Struct BufferSubscriptionState

Struct Documentation

struct BufferSubscriptionState

Mutable buffer state shared between the discovery callback and the take/destroy paths. Managed via shared_ptr so the callback can safely outlive the CustomSubscriberInfo that created it.

Public Members

std::atomic<bool> alive = {true}
std::mutex mutex
std::unordered_map<std::string, PublisherBufferMetadata> publisher_metadata

GID hex string -> publisher metadata, populated by discovery callback.