lichao
2021-04-21 b3b9d91eccd3f54be112ac5389b49969fea93b4c
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;