24 if (m_CommandThread.joinable())
26 m_CommandThread.join();
29 m_IsRunning.store(
true);
30 m_KeepRunning.store(
true);
31 m_CommandThread = std::thread(&CommandHandler::HandleCommands,
this, std::ref(profilingConnection));
36 m_KeepRunning.store(
false);
38 if (m_CommandThread.joinable())
40 m_CommandThread.join();
65 BOOST_ASSERT(commandHandlerFunctor);
66 commandHandlerFunctor->operator()(packet);
70 if (m_StopAfterTimeout.load())
72 m_KeepRunning.store(
false);
80 if ( !profilingConnection.
IsOpen() )
85 m_KeepRunning.store(
false);
89 while (m_KeepRunning.load());
91 m_IsRunning.store(
false);
uint32_t GetEncodedValue()
void Start(IProfilingConnection &profilingConnection)
Version ResolvePacketVersion(uint32_t familyId, uint32_t packetId) const
virtual const char * what() const noexcept override
#define ARMNN_LOG(severity)
CommandHandlerFunctor * GetFunctor(uint32_t familyId, uint32_t packetId, uint32_t version) const
Copyright (c) 2020 ARM Limited.
virtual Packet ReadPacket(uint32_t timeout)=0
uint32_t GetPacketFamily() const
Base class for all ArmNN exceptions so that users can filter to just those.
uint32_t GetPacketId() const
virtual bool IsOpen() const =0