aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-09-09 09:23:53 +0100
committerJim Flynn Arm <jim.flynn@arm.com>2019-09-09 11:57:00 +0000
commit2e7c885590203295782d2e92f52468e88b9b636f (patch)
tree1ba453b99f276ff3e2094e8944aaaf3223cced94 /src
parent47d0fe98ca6ab3ba1d21b0971d3009a287974442 (diff)
downloadarmnn-2e7c885590203295782d2e92f52468e88b9b636f.tar.gz
IVGCVSW-3400 Add missing virtual destructors
* Added missing virtual destructors to recently added profiling interface classes Change-Id: Id2c4b3bb22ef233b26723d3e578477c59018fbda Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
Diffstat (limited to 'src')
-rw-r--r--src/profiling/IBufferWrapper.hpp4
-rw-r--r--src/profiling/IProfilingConnection.hpp2
-rw-r--r--src/profiling/ISendCounterPacket.hpp2
3 files changed, 7 insertions, 1 deletions
diff --git a/src/profiling/IBufferWrapper.hpp b/src/profiling/IBufferWrapper.hpp
index 5128521d02..9c38ab1dc8 100644
--- a/src/profiling/IBufferWrapper.hpp
+++ b/src/profiling/IBufferWrapper.hpp
@@ -14,6 +14,8 @@ namespace profiling
class IBufferWrapper
{
public:
+ virtual ~IBufferWrapper() {}
+
virtual unsigned char* Reserve(unsigned int requestedSize, unsigned int& reservedSize) = 0;
virtual void Commit(unsigned int size) = 0;
@@ -25,4 +27,4 @@ public:
} // namespace profiling
-} // namespace armnn \ No newline at end of file
+} // namespace armnn
diff --git a/src/profiling/IProfilingConnection.hpp b/src/profiling/IProfilingConnection.hpp
index c8387f2a83..160a4fa31d 100644
--- a/src/profiling/IProfilingConnection.hpp
+++ b/src/profiling/IProfilingConnection.hpp
@@ -18,6 +18,8 @@ namespace profiling
class IProfilingConnection
{
public:
+ virtual ~IProfilingConnection() {}
+
virtual bool IsOpen() = 0;
virtual void Close() = 0;
diff --git a/src/profiling/ISendCounterPacket.hpp b/src/profiling/ISendCounterPacket.hpp
index 7f9e192b9d..5117c5dbd5 100644
--- a/src/profiling/ISendCounterPacket.hpp
+++ b/src/profiling/ISendCounterPacket.hpp
@@ -18,6 +18,8 @@ class ISendCounterPacket
public:
using IndexValuePairsVector = std::vector<std::pair<uint16_t, uint32_t>>;
+ virtual ~ISendCounterPacket() {}
+
/// Create and write a StreamMetaDataPacket in the buffer
virtual void SendStreamMetaDataPacket() = 0;