Skip to content

Commit

Permalink
Fix scheduler interface
Browse files Browse the repository at this point in the history
  • Loading branch information
ikbuibui committed Jul 24, 2024
1 parent 8216274 commit def0c50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion redGrapes/scheduler/pool_scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
8 changes: 4 additions & 4 deletions redGrapes/scheduler/scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ 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&)
{
}

virtual void wake_all()
{
}

virtual bool wake(WakerId id = 0)
virtual bool wake(WakerId)
{
return false;
}
Expand All @@ -61,7 +61,7 @@ namespace redGrapes
}

// initialize the execution context pointed to by the scheduler
virtual void init()
virtual void init(WorkerId)
{
}

Expand Down

0 comments on commit def0c50

Please sign in to comment.