From 7be47efac07b6276f02a17cb486f9061a426a837 Mon Sep 17 00:00:00 2001 From: Narumol Prangnawarat Date: Fri, 27 Sep 2019 18:00:11 +0100 Subject: IVGCVSW-3903 Create Counter Stream Buffer * Add implementation of PacketBuffer * Add implementation of BufferManager * Unit tests Signed-off-by: Narumol Prangnawarat Change-Id: Icca3807149ff5a8ed31cc87de73c50b95bca39d4 --- src/profiling/test/SendCounterPacketTests.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/profiling/test/SendCounterPacketTests.hpp') diff --git a/src/profiling/test/SendCounterPacketTests.hpp b/src/profiling/test/SendCounterPacketTests.hpp index c3d47157d0..243731cb2c 100644 --- a/src/profiling/test/SendCounterPacketTests.hpp +++ b/src/profiling/test/SendCounterPacketTests.hpp @@ -147,10 +147,10 @@ public: { std::unique_lock availableListLock(m_AvailableMutex, std::defer_lock); if (requestedSize > m_MaxBufferSize) - { + { throw armnn::Exception("Maximum buffer size that can be requested is [" + std::to_string(m_MaxBufferSize) + "] bytes"); - } + } availableListLock.lock(); if (m_AvailableList.empty()) { -- cgit v1.2.1