From 3896b47a3532aadcde43a3e7fed760a0f4a29e6b Mon Sep 17 00:00:00 2001 From: Sadik Armagan Date: Mon, 10 Feb 2020 12:24:15 +0000 Subject: IVGCVSW-4328 BufferManager running out of buffers crashes application * Refactored SendCounterPacket classes, separated SendCounterPacket from Send thread * Created ISendThread.hpp, IConsumer, SendThread.hpp and SendThread.cpp * Injected IConsumer to BufferManager to notify SendThread when packet is ready to read Signed-off-by: Sadik Armagan Change-Id: I80f0bb8b8401c6bfd1611f7760217c6fe35d7ad8 --- src/profiling/ISendThread.hpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/profiling/ISendThread.hpp (limited to 'src/profiling/ISendThread.hpp') diff --git a/src/profiling/ISendThread.hpp b/src/profiling/ISendThread.hpp new file mode 100644 index 0000000000..c5e05b183c --- /dev/null +++ b/src/profiling/ISendThread.hpp @@ -0,0 +1,31 @@ +// +// Copyright © 2020 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include "IProfilingConnection.hpp" + +namespace armnn +{ + +namespace profiling +{ + +class ISendThread +{ +public: + virtual ~ISendThread() {} + + /// Start the thread + virtual void Start(IProfilingConnection& profilingConnection) = 0; + + /// Stop the thread + virtual void Stop(bool rethrowSendThreadExceptions = true) = 0; +}; + +} // namespace profiling + +} // namespace armnn + -- cgit v1.2.1