From db322f33ba13592f2492317e3f1a070454c97059 Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期四, 13 五月 2021 19:34:46 +0800 Subject: [PATCH] center alloc all msgs. --- box/center_main.cc | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/box/center_main.cc b/box/center_main.cc index 232b943..6795e41 100644 --- a/box/center_main.cc +++ b/box/center_main.cc @@ -83,6 +83,12 @@ std::atomic<bool> run_; }; +bool CenterInit(bhome_shm::SharedMemory &shm) +{ + ShmSocket create(shm, BHGlobalSenderAddress(), 16); + return true; +} + } // namespace int center_main(int argc, const char *argv[]) { @@ -102,6 +108,7 @@ if (strcasecmp(lvl.c_str(), "fatal") == 0) { ns_log::ResetLogLevel(ns_log::LogLevel::fatal); } auto &shm = BHomeShm(); + CenterInit(shm); GlobalInit(shm); InstanceFlag inst(shm, kCenterRunningFlag); -- Gitblit v1.8.0