From a9ee3f2f7f557adbe5448e4f4fbf71c23fe808b1 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Mon, 7 Apr 2025 14:37:19 -0400 Subject: Implemented the legacy policies and fixed a few bugs --- include/framework/scheduling/FIFOScheduler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/framework/scheduling') diff --git a/include/framework/scheduling/FIFOScheduler.h b/include/framework/scheduling/FIFOScheduler.h index 16fe111..6875aca 100644 --- a/include/framework/scheduling/FIFOScheduler.h +++ b/include/framework/scheduling/FIFOScheduler.h @@ -61,6 +61,7 @@ public: m_stats.job_queued(ts, type, size); m_task_queue.push(Task(size, ts, job, args, type, &m_stats, nullptr, &m_cv)); + m_cv.notify_all(); } @@ -107,8 +108,8 @@ private: } void run() { + std::unique_lock cv_lock(m_cv_lock); do { - std::unique_lock cv_lock(m_cv_lock); m_cv.wait(cv_lock); while (m_task_queue.size() > 0 && m_thrd_pool.n_idle() > 0) { -- cgit v1.2.3