2 #include <ossia/dataflow/execution/execution_policy.hpp>
4 #include <blockingconcurrentqueue.h>
11 #if defined(OSSIA_TESTING)
14 merged_execution_state_policy : local_state_execution_policy
16 void commit()
override;
17 ossia::mono_state m_monoState;
20 struct threaded_merged_execution_state_policy : local_state_execution_policy
22 threaded_merged_execution_state_policy();
23 ~threaded_merged_execution_state_policy();
25 void commit()
override;
26 ossia::mono_state m_monoState;
28 std::thread m_valuesOutputThread;
33 moodycamel::BlockingConcurrentQueue<std::vector<ossia::state_element>>
36 std::atomic_bool m_stopFlag{};
38 std::vector<ossia::state_element> m_states;