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