12 #include <condition_variable>
16 #include <unordered_map>
21 namespace experimental
32 #
if !defined(ARMNN_DISABLE_THREADS)
34 , std::condition_variable& condition
37 : m_NotificationQueue(notificationQueue)
38 #if !defined(ARMNN_DISABLE_THREADS)
40 , m_Condition(condition)
42 , m_InferenceId(++nextID)
60 std::queue<InferenceId>& m_NotificationQueue;
61 #if !defined(ARMNN_DISABLE_THREADS)
63 std::condition_variable& m_Condition;
82 #if !defined(ARMNN_DISABLE_THREADS)
84 std::condition_variable m_Condition;
86 std::unordered_map<InferenceId, std::shared_ptr<AsyncExecutionCallback>> m_Callbacks;
87 std::queue<InferenceId> m_NotificationQueue;