devicesbus stage
This commit is contained in:
@@ -36,6 +36,17 @@ void DeviceBusManager::setDirtyCallback(std::function<void()> cb)
|
||||
|
||||
bool DeviceBusManager::initialize(const QJsonObject& rootConfig)
|
||||
{
|
||||
// 初始化内存池、pipeline引擎、插件管理器、ingress适配器、egress路由器
|
||||
// 内存池是用来存储数据块的
|
||||
// pipeline引擎是用来处理数据流的
|
||||
// 插件管理器是用来管理插件的
|
||||
// ingress适配器是用来将数据推送到 ingress 队列的
|
||||
// egress路由器是用来将数据从 ingress 队列中取出并发送给设备的
|
||||
// 内存池大小为4096,每个数据块大小为4096
|
||||
// pipeline引擎队列大小为4096
|
||||
// 插件管理器插件数量为4096
|
||||
// ingress适配器队列大小为4096
|
||||
// egress路由器队列大小为4096
|
||||
if (!m_memoryPool) {
|
||||
m_memoryPool = std::make_shared<softbus::core::memory::MemoryPool>(4096, 4096);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user