aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/SendThread.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-03-08 21:23:44 +0000
committerJim Flynn <jim.flynn@arm.com>2022-03-09 22:14:52 +0000
commitf9db3efe5ce2b989b59c47056e1b84b32d2f1100 (patch)
treeb1fd75d5f951f9036a8f0b37211fc30b4d651262 /src/profiling/SendThread.cpp
parent0e5588f3289845d1bd7597ade081764018eda2cc (diff)
downloadarmnn-f9db3efe5ce2b989b59c47056e1b84b32d2f1100.tar.gz
IVGCVSW-6821 Remove dependency on armnn::Exception classes from the Profiling code
Change-Id: Id46a9a0576091df21b2af5b472f1ca5c6335e8a3 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/SendThread.cpp')
-rw-r--r--src/profiling/SendThread.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/profiling/SendThread.cpp b/src/profiling/SendThread.cpp
index 41385c5cc8..e932eba3e9 100644
--- a/src/profiling/SendThread.cpp
+++ b/src/profiling/SendThread.cpp
@@ -6,10 +6,11 @@
#include "SendThread.hpp"
#include "ProfilingUtils.hpp"
-#include <armnn/Exceptions.hpp>
#include <armnn/Conversion.hpp>
#include <armnn/utility/NumericCast.hpp>
+#include <common/include/ProfilingException.hpp>
+
#include <Processes.hpp>
#include <cstring>
@@ -128,8 +129,8 @@ void SendThread::Send(IProfilingConnection& profilingConnection)
// An exception should be thrown here, save it to be rethrown later from the main thread so that
// it can be caught by the consumer
m_SendThreadException =
- std::make_exception_ptr(armnn::RuntimeException("The send thread should not be running with the "
- "profiling service not yet initialized or connected"));
+ std::make_exception_ptr(arm::pipe::ProfilingException(
+ "The send thread should not be running with the profiling service not yet initialized or connected"));
return;
case ProfilingState::WaitingForAck: