2 #include <QAbstractEventDispatcher>
5 #include <blockingconcurrentqueue.h>
6 #include <score_lib_base_export.h>
7 #include <smallfun.hpp>
21 QThread* acquireThread();
25 std::unique_ptr<QThread[]> m_threads;
27 int m_currentThread{};
42 m_queue.enqueue(std::forward<F>(func));
46 using task = smallfun::function<
48 #if defined(_MSC_VER) && !defined(NDEBUG)
53 std::max((
int)8, (
int)std::max(
alignof(std::function<
void()>),
alignof(
double))),
54 smallfun::Methods::Move>;
55 moodycamel::BlockingConcurrentQueue<task> m_queue;
56 std::array<std::thread, 1> m_threads;
57 std::atomic_bool m_running{};
Definition: ThreadPool.hpp:33
Definition: ThreadPool.hpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90