IVGCVSW-6710 Add compile of BareMetalDeserializedGraph sample
Change-Id: Ice69c2a22f589f68d302f80500dfe4e514a796d2
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
diff --git a/profiling/client/src/CommandHandler.hpp b/profiling/client/src/CommandHandler.hpp
index b097f9e..bc0461f 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 @@
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 @@
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 @@
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;