aboutsummaryrefslogtreecommitdiff
path: root/profiling/client/src/BufferManager.hpp
diff options
context:
space:
mode:
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;