aboutsummaryrefslogtreecommitdiff
path: root/profiling/client/src/BufferManager.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/BufferManager.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/BufferManager.hpp')
-rw-r--r--profiling/client/src/BufferManager.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/profiling/client/src/BufferManager.hpp b/profiling/client/src/BufferManager.hpp
index 0ab3e0e534..548edec0f4 100644
--- a/profiling/client/src/BufferManager.hpp
+++ b/profiling/client/src/BufferManager.hpp
@@ -8,8 +8,10 @@
#include "IBufferManager.hpp"
#include "IConsumer.hpp"
-#include <condition_variable>
+#if !defined(ARMNN_DISABLE_THREADS)
#include <mutex>
+#endif
+
#include <vector>
#include <queue>
@@ -61,11 +63,13 @@ private:
// List of readable packet buffers
std::queue<IPacketBufferPtr> m_ReadableList;
+#if !defined(ARMNN_DISABLE_THREADS)
// Mutex for available packet buffer list
std::mutex m_AvailableMutex;
// Mutex for readable packet buffer list
std::mutex m_ReadableMutex;
+#endif
// Consumer thread to notify packet is ready to read
IConsumer* m_Consumer = nullptr;