libxr  1.0
Want to be the best embedded framework
Loading...
Searching...
No Matches
LibXR::Topic::Block Struct Reference

topic 运行时状态块 / Runtime state block of one topic More...

#include <topic.hpp>

Collaboration diagram for LibXR::Topic::Block:
[legend]

Data Fields

std::atomic< LockStatebusy
 发布路径串行化状态。Publish-path serialization state.
 
LockFreeList subers
 已挂接订阅者链表。List of attached subscribers.
 
TypeID::ID payload_type_id
 精确 payload 类型标识。Exact payload type identifier.
 
uint32_t payload_size
 该 topic 固定 payload 字节数。Fixed payload size in bytes of this topic.
 
uint32_t payload_alignment
 该 topic payload 所需对齐。Required payload alignment of this topic.
 
uint32_t crc32
 主题名 CRC32 键。CRC32 key of the topic name.
 
Mutexmutex
 多发布者主题使用的互斥量。Mutex used by multi-publisher topics.
 

Detailed Description

topic 运行时状态块 / Runtime state block of one topic

Note
当前 topic 自身不缓存最近一次消息值;这里只保存类型契约、名称键值、发布串行化 状态以及订阅链表。 The topic no longer caches the latest payload value itself; this block keeps only the type contract, topic key, publish-serialization state, and subscriber list.

Definition at line 80 of file topic.hpp.

Field Documentation

◆ busy

std::atomic<LockState> LibXR::Topic::Block::busy

发布路径串行化状态。Publish-path serialization state.

Definition at line 82 of file topic.hpp.

◆ crc32

uint32_t LibXR::Topic::Block::crc32

主题名 CRC32 键。CRC32 key of the topic name.

Definition at line 87 of file topic.hpp.

◆ mutex

Mutex* LibXR::Topic::Block::mutex

多发布者主题使用的互斥量。Mutex used by multi-publisher topics.

Definition at line 88 of file topic.hpp.

◆ payload_alignment

uint32_t LibXR::Topic::Block::payload_alignment

该 topic payload 所需对齐。Required payload alignment of this topic.

Definition at line 86 of file topic.hpp.

◆ payload_size

uint32_t LibXR::Topic::Block::payload_size

该 topic 固定 payload 字节数。Fixed payload size in bytes of this topic.

Definition at line 85 of file topic.hpp.

◆ payload_type_id

TypeID::ID LibXR::Topic::Block::payload_type_id

精确 payload 类型标识。Exact payload type identifier.

Definition at line 84 of file topic.hpp.

◆ subers

LockFreeList LibXR::Topic::Block::subers

已挂接订阅者链表。List of attached subscribers.

Definition at line 83 of file topic.hpp.


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