libxr 1.0
Want to be the best embedded framework
|
构造函数,使用名称和无锁队列进行初始化 Constructor using a name and a lock-free queue More...
#include <message.hpp>
Public Member Functions | |
template<typename Data , uint32_t Length> | |
QueuedSubscriber (const char *name, LockFreeQueue< Data > &queue, Domain *domain=nullptr) | |
template<typename Data > | |
QueuedSubscriber (Topic topic, LockFreeQueue< Data > &queue) | |
构造函数,使用 Topic 和无锁队列进行初始化 Constructor using a Topic and a lock-free queue | |
template<typename Data > | |
QueuedSubscriber (const char *name, LockQueue< Data > &queue, Domain *domain=nullptr) | |
构造函数,使用名称和带锁队列进行初始化 Constructor using a name and a locked queue | |
template<typename Data > | |
QueuedSubscriber (Topic topic, LockQueue< Data > &queue) | |
构造函数,使用 Topic 和带锁队列进行初始化 Constructor using a Topic and a locked queue | |
构造函数,使用名称和无锁队列进行初始化 Constructor using a name and a lock-free queue
Data | 队列存储的数据类型 Data type stored in the queue |
Length | 队列长度 Queue length |
name | 订阅的主题名称 Name of the subscribed topic |
queue | 订阅的数据队列 Subscribed data queue |
domain | 可选的域指针 Optional domain pointer (default: nullptr) |
Definition at line 373 of file message.hpp.
|
inline |
Definition at line 377 of file message.hpp.
|
inline |
构造函数,使用 Topic 和无锁队列进行初始化 Constructor using a Topic and a lock-free queue
Data | 队列存储的数据类型 Data type stored in the queue |
topic | 订阅的主题 Subscribed topic |
queue | 订阅的数据队列 Subscribed data queue |
Definition at line 391 of file message.hpp.
|
inline |
构造函数,使用名称和带锁队列进行初始化 Constructor using a name and a locked queue
Data | 队列存储的数据类型 Data type stored in the queue |
name | 订阅的主题名称 Name of the subscribed topic |
queue | 订阅的数据队列 Subscribed data queue |
domain | 可选的域指针 Optional domain pointer (default: nullptr) |
Definition at line 424 of file message.hpp.
构造函数,使用 Topic 和带锁队列进行初始化 Constructor using a Topic and a locked queue
Data | 队列存储的数据类型 Data type stored in the queue |
topic | 订阅的主题 Subscribed topic |
queue | 订阅的数据队列 Subscribed data queue |
Definition at line 437 of file message.hpp.