diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-04-12 17:19:28 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2022-04-14 14:06:56 +0000 |
commit | e195a0418d86650e132737716059bff0ec80257f (patch) | |
tree | 1678283a958a2ab74cd27b648f5a69ef5270d289 /profiling/client/src/FileOnlyProfilingConnection.hpp | |
parent | 69515d3b36653a00a5abee8bf52ac26dd6522bee (diff) | |
download | armnn-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/FileOnlyProfilingConnection.hpp')
-rw-r--r-- | profiling/client/src/FileOnlyProfilingConnection.hpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/profiling/client/src/FileOnlyProfilingConnection.hpp b/profiling/client/src/FileOnlyProfilingConnection.hpp index c7e60f564e..9ecbd6ccaf 100644 --- a/profiling/client/src/FileOnlyProfilingConnection.hpp +++ b/profiling/client/src/FileOnlyProfilingConnection.hpp @@ -17,12 +17,15 @@ #include <server/include/timelineDecoder/DirectoryCaptureCommandHandler.hpp> #include <atomic> -#include <condition_variable> #include <fstream> #include <map> -#include <mutex> #include <queue> + +#if !defined(ARMNN_DISABLE_THREADS) +#include <condition_variable> +#include <mutex> #include <thread> +#endif namespace arm { @@ -111,8 +114,10 @@ private: std::queue<arm::pipe::Packet> m_PacketQueue; TargetEndianness m_Endianness; +#if !defined(ARMNN_DISABLE_THREADS) std::mutex m_PacketAvailableMutex; std::condition_variable m_ConditionPacketAvailable; +#endif std::vector<ILocalPacketHandlerSharedPtr> m_PacketHandlers; std::map<uint32_t, std::vector<ILocalPacketHandlerSharedPtr>> m_IndexedHandlers; @@ -121,11 +126,13 @@ private: // List of readable packets for the local packet handlers std::queue<arm::pipe::Packet> m_ReadableList; // Mutex and condition variable for the readable packet list +#if !defined(ARMNN_DISABLE_THREADS) std::mutex m_ReadableMutex; std::condition_variable m_ConditionPacketReadable; // thread that takes items from the readable list and dispatches them // to the handlers. std::thread m_LocalHandlersThread; +#endif // atomic booleans that control the operation of the local handlers thread std::atomic<bool> m_IsRunning; std::atomic<bool> m_KeepRunning; |