some thoughts about scheduling
This commit is contained in:
parent
26114aad5f
commit
544db92b6e
11 changed files with 123 additions and 23 deletions
20
taskmanager/function.h
Normal file
20
taskmanager/function.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
//SPDX-FileCopyrightText: 2024 Yury Gubich <blue@macaw.me>
|
||||
//SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "functional"
|
||||
|
||||
#include "job.h"
|
||||
|
||||
namespace TM {
|
||||
class Function : public Job {
|
||||
public:
|
||||
Function(const std::function<void()>& fn);
|
||||
|
||||
void execute () override;
|
||||
|
||||
private:
|
||||
std::function<void()> fn;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue