From d1f89c1eb52a08b97d5be5dd991c5991b6f0bf93 Mon Sep 17 00:00:00 2001 From: liuxiaolong <liuxiaolong@aiotlink.com> Date: 星期三, 21 四月 2021 16:41:30 +0800 Subject: [PATCH] 修改包名,作为go依赖库 --- src/defs.cpp | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/defs.cpp b/src/defs.cpp index 77b0722..0ff671b 100644 --- a/src/defs.cpp +++ b/src/defs.cpp @@ -16,6 +16,8 @@ * ===================================================================================== */ #include "defs.h" +#include "shm.h" + namespace { @@ -40,6 +42,12 @@ const MQId &BHTopicCenterAddress() { return kBHTopicCenter; } const MQId &BHUniCenterAddress() { return kBHUniCenter; } +bhome_shm::SharedMemory &BHomeShm() +{ + static bhome_shm::SharedMemory shm("bhome_default_shm_v0", 1024 * 1024 * 512); + return shm; +} + void SetLastError(const int ec, const std::string &msg) { LastErrorStore().ec_ = ec; -- Gitblit v1.8.0