diff options
Diffstat (limited to 'profiling/client/src/SendThread.hpp')
-rw-r--r-- | profiling/client/src/SendThread.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/profiling/client/src/SendThread.hpp b/profiling/client/src/SendThread.hpp index b96a6d54f3..f462ae07d8 100644 --- a/profiling/client/src/SendThread.hpp +++ b/profiling/client/src/SendThread.hpp @@ -17,9 +17,11 @@ #include <common/include/ICounterDirectory.hpp> #include <atomic> +#if !defined(ARMNN_DISABLE_THREADS) #include <condition_variable> #include <mutex> #include <thread> +#endif #include <type_traits> namespace arm @@ -57,9 +59,11 @@ private: IBufferManager& m_BufferManager; ISendCounterPacket& m_SendCounterPacket; int m_Timeout; +#if !defined(ARMNN_DISABLE_THREADS) std::mutex m_WaitMutex; std::condition_variable m_WaitCondition; std::thread m_SendThread; +#endif std::atomic<bool> m_IsRunning; std::atomic<bool> m_KeepRunning; // m_ReadyToRead will be protected by m_WaitMutex @@ -67,9 +71,10 @@ private: // m_PacketSent will be protected by m_PacketSentWaitMutex bool m_PacketSent; std::exception_ptr m_SendThreadException; +#if !defined(ARMNN_DISABLE_THREADS) std::mutex m_PacketSentWaitMutex; std::condition_variable m_PacketSentWaitCondition; - +#endif }; } // namespace pipe |