diff --git a/include/wv/app/App.h b/include/wv/app/App.h index 508fd54..5db0e0d 100644 --- a/include/wv/app/App.h +++ b/include/wv/app/App.h @@ -9,6 +9,9 @@ namespace WillowVox class App { public: + App() = default; + virtual ~App() = default; + void Run(); virtual void Start() {} diff --git a/src/threading/ThreadPool.cpp b/src/threading/ThreadPool.cpp index 5a8b249..6104d78 100644 --- a/src/threading/ThreadPool.cpp +++ b/src/threading/ThreadPool.cpp @@ -43,8 +43,7 @@ namespace WillowVox { // Wait for job to be enqueued m_signal.wait_dequeue(token); - Logger::Log("Worker thread %d checking for jobs", std::this_thread::get_id()); - + // Stop early if necessary if (m_shouldTerminate) return; @@ -55,7 +54,7 @@ namespace WillowVox for (int i = 0; i < static_cast(Priority::Count); i++) { - if (m_queues[static_cast(Priority::High)].try_dequeue(job)) + if (m_queues[i].try_dequeue(job)) { found = true; break;