lichao
2021-04-09 2197cf91e7a3bd5941327ba630a42946b88f069e
src/shm_queue.h
@@ -131,26 +131,13 @@
   ~ShmMsgQueue();
   const MQId &Id() const { return id_; }
   bool Recv(BHMsg &msg, const int timeout_ms);
   // bool Recv(MsgI &msg, BHMsgHead &head, const int timeout_ms);
   bool Recv(MsgI &msg, const int timeout_ms) { return Read(msg, timeout_ms); }
   static bool Send(SharedMemory &shm, const MQId &remote_id, const MsgI &msg, const int timeout_ms, OnSend const &onsend);
   static bool Send(SharedMemory &shm, const MQId &remote_id, const MsgI &msg, const int timeout_ms)
   {
      return Send(shm, remote_id, msg, timeout_ms, []() {});
   }
   bool Send(const MQId &remote_id, const BHMsg &msg, const int timeout_ms, OnSend const &onsend);
   bool Send(const MQId &remote_id, const BHMsg &msg, const int timeout_ms)
   {
      return Send(remote_id, msg, timeout_ms, []() {});
   }
   bool Send(const MQId &remote_id, const MsgI &msg, const int timeout_ms, OnSend const &onsend)
   {
      return Send(shm(), remote_id, msg, timeout_ms, onsend);
   }
   bool Send(const MQId &remote_id, const MsgI &msg, const int timeout_ms)
   {
      return Send(shm(), remote_id, msg, timeout_ms);
   }
   static bool Send(SharedMemory &shm, const MQId &remote_id, const MsgI &msg, const int timeout_ms);
   template <class... Rest>
   bool Send(const MQId &remote_id, Rest const &...rest) { return Send(shm(), remote_id, rest...); }
   size_t Pending() const { return data()->size(); }
};