some thoughts about scheduling

This commit is contained in:
Blue 2024-01-02 22:11:56 -03:00
parent 26114aad5f
commit 544db92b6e
Signed by: blue
GPG key ID: 9B203B252A63EE38
11 changed files with 123 additions and 23 deletions

20
taskmanager/function.h Normal file
View 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;
};
}