From 1fbfef2a51db4a3bac9d8a5b87af94a40a913b7a Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期日, 25 四月 2021 15:33:40 +0800 Subject: [PATCH] change mqid from uuid to uint64. --- box/center_main.cc | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/box/center_main.cc b/box/center_main.cc index 7f4b26b..fdda2cd 100644 --- a/box/center_main.cc +++ b/box/center_main.cc @@ -44,8 +44,8 @@ return true; } - auto mtx(shm_.find_or_construct<Mutex>((name_ + "_mutex_0").c_str())()); - auto time_stamp(shm_.find_or_construct<int64_t>((name_ + "_timestamp_0").c_str())(0)); + auto mtx(shm_.FindOrCreate<Mutex>(name_ + "_mutex_0")); + auto time_stamp(shm_.FindOrCreate<int64_t>(name_ + "_timestamp_0", 0)); if (mtx && time_stamp) { Guard lock(*mtx); @@ -86,7 +86,7 @@ int center_main(int argc, const char *argv[]) { auto &shm = BHomeShm(); - MsgI::BindShm(shm); + GlobalInit(shm); AppArg args(argc, argv); if (args.Has("remove")) { -- Gitblit v1.8.0