From ca594b19de96d5033a14eac282912996f3610e4f Mon Sep 17 00:00:00 2001 From: Tapish Date: Wed, 24 Jul 2024 15:36:30 +0200 Subject: [PATCH] Fix scheduler interface --- redGrapes/scheduler/pool_scheduler.hpp | 2 +- redGrapes/scheduler/scheduler.hpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/redGrapes/scheduler/pool_scheduler.hpp b/redGrapes/scheduler/pool_scheduler.hpp index b9809ede..c8119d14 100644 --- a/redGrapes/scheduler/pool_scheduler.hpp +++ b/redGrapes/scheduler/pool_scheduler.hpp @@ -47,7 +47,7 @@ namespace redGrapes * * @return true if thread was indeed asleep */ - bool wake(WakerId id = 0); + bool wake(WakerId id); /* wakeup all workers */ diff --git a/redGrapes/scheduler/scheduler.hpp b/redGrapes/scheduler/scheduler.hpp index 5c314a1b..d4952ab0 100644 --- a/redGrapes/scheduler/scheduler.hpp +++ b/redGrapes/scheduler/scheduler.hpp @@ -37,12 +37,12 @@ namespace redGrapes } //! add task to the set of to-initialize tasks - virtual void emplace_task(TTask& task) + virtual void emplace_task(TTask&) { } //! add task to ready set - virtual void activate_task(TTask& task) + virtual void activate_task(TTask&) { } @@ -50,7 +50,7 @@ namespace redGrapes { } - virtual bool wake(WakerId id = 0) + virtual bool wake(WakerId) { return false; } @@ -61,7 +61,7 @@ namespace redGrapes } // initialize the execution context pointed to by the scheduler - virtual void init() + virtual void init(WorkerId) { }