pull/601/head
Jeff 5 years ago
parent e21f1020ee
commit 84ce9460f5

@ -21,7 +21,6 @@ namespace llarp
buffer.cur += sz;
return true;
}
IBMsgPool_t IBPool;
} // namespace utp

@ -80,10 +80,7 @@ namespace llarp
return lhs.buffer.base == rhs.buffer.base;
}
using IBMsgPool_t = util::AllocPool< _InboundMessage, 1024 >;
extern IBMsgPool_t IBPool;
using InboundMessage = _InboundMessage*;
using InboundMessage = std::shared_ptr< _InboundMessage >;
} // namespace utp

@ -10,8 +10,10 @@ namespace llarp
namespace utp
{
using SendBufferPool = util::AllocPool< FragmentBuffer, 1024 * 4 >;
using RecvBufferPool = util::AllocPool< _InboundMessage, 1024 >;
static SendBufferPool OBPool;
static RecvBufferPool IBPool;
using namespace std::placeholders;

Loading…
Cancel
Save