lichao
2021-05-10 77a6c3512a44dfe6540dde71946e6484fe4f173f
src/defs.cpp
@@ -17,7 +17,7 @@
 */
#include "defs.h"
#include "msg.h"
#include "shm_queue.h"
#include "shm_msg_queue.h"
namespace
{
@@ -35,9 +35,13 @@
} // namespace
std::string BHomeShmName()
{
   return "bhome_default_shm_v0";
}
bhome_shm::SharedMemory &BHomeShm()
{
   static bhome_shm::SharedMemory shm("bhome_default_shm_v0", 1024 * 1024 * 512);
   static bhome_shm::SharedMemory shm(BHomeShmName(), 1024 * 1024 * 512);
   return shm;
}
@@ -46,7 +50,7 @@
   MsgI::BindShm(shm);
   typedef std::atomic<MQId> IdSrc;
   IdSrc *psrc = shm.FindOrCreate<IdSrc>("shmqIdSrc0", 100000);
   return ShmMsgQueue::SetData(*psrc);
   return psrc && ShmMsgQueue::SetData(*psrc);
}
void SetLastError(const int ec, const std::string &msg)