lichao
2021-04-23 a04d4d01eb8e38b8ec5367114b5581bd64eee17e
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;