From dc11a1ff299e87f7ab8351e257d5f9905b7961d7 Mon Sep 17 00:00:00 2001 From: Rob Riggs Date: Sat, 5 Jan 2019 21:29:02 -0600 Subject: [PATCH] Increase frame pool count to match segment pool count. Fixes #4. --- TNC/HdlcFrame.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TNC/HdlcFrame.hpp b/TNC/HdlcFrame.hpp index 09fc2c7..32a1f26 100644 --- a/TNC/HdlcFrame.hpp +++ b/TNC/HdlcFrame.hpp @@ -139,7 +139,7 @@ public: } }; -template +template class FramePool { public: @@ -147,7 +147,7 @@ public: typedef list> FrameList; private: - static const uint16_t FRAME_COUNT = 16; + static const uint16_t FRAME_COUNT = SIZE; frame_type frames_[FRAME_COUNT]; FrameList free_list_; @@ -188,7 +188,7 @@ typedef buffer::Pool<48> FrameSegmentPool; // 12K buffer of frames; extern FrameSegmentPool frameSegmentPool; typedef Frame IoFrame; -typedef FramePool IoFramePool; +typedef FramePool IoFramePool; IoFramePool& ioFramePool(void);