aboutsummaryrefslogtreecommitdiff
path: root/profiling/client/src/CommandHandler.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-04-12 17:19:28 +0100
committerTeresaARM <teresa.charlinreyes@arm.com>2022-04-14 14:06:56 +0000
commite195a0418d86650e132737716059bff0ec80257f (patch)
tree1678283a958a2ab74cd27b648f5a69ef5270d289 /profiling/client/src/CommandHandler.hpp
parent69515d3b36653a00a5abee8bf52ac26dd6522bee (diff)
downloadarmnn-e195a0418d86650e132737716059bff0ec80257f.tar.gz
IVGCVSW-6710 Add compile of BareMetalDeserializedGraph sample
Change-Id: Ice69c2a22f589f68d302f80500dfe4e514a796d2 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'profiling/client/src/CommandHandler.hpp')
-rw-r--r--profiling/client/src/CommandHandler.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/profiling/client/src/CommandHandler.hpp b/profiling/client/src/CommandHandler.hpp
index b097f9ef20..bc0461f1c2 100644
--- a/profiling/client/src/CommandHandler.hpp
+++ b/profiling/client/src/CommandHandler.hpp
@@ -11,7 +11,9 @@
#include <common/include/CommandHandlerRegistry.hpp>
#include <atomic>
+#if !defined(ARMNN_DISABLE_THREADS)
#include <thread>
+#endif
namespace arm
{
@@ -30,7 +32,9 @@ public:
m_StopAfterTimeout(stopAfterTimeout),
m_IsRunning(false),
m_KeepRunning(false),
+#if !defined(ARMNN_DISABLE_THREADS)
m_CommandThread(),
+#endif
m_CommandHandlerRegistry(commandHandlerRegistry),
m_PacketVersionResolver(packetVersionResolver)
{}
@@ -38,7 +42,6 @@ public:
void SetTimeout(uint32_t timeout) { m_Timeout.store(timeout); }
void SetStopAfterTimeout(bool stopAfterTimeout) { m_StopAfterTimeout.store(stopAfterTimeout); }
-
void Start(IProfilingConnection& profilingConnection);
void Stop();
bool IsRunning() const { return m_IsRunning.load(); }
@@ -50,7 +53,9 @@ private:
std::atomic<bool> m_StopAfterTimeout;
std::atomic<bool> m_IsRunning;
std::atomic<bool> m_KeepRunning;
+#if !defined(ARMNN_DISABLE_THREADS)
std::thread m_CommandThread;
+#endif
arm::pipe::CommandHandlerRegistry& m_CommandHandlerRegistry;
arm::pipe::PacketVersionResolver& m_PacketVersionResolver;