16 lines
310 B
C++
16 lines
310 B
C++
|
#pragma once
|
||
|
#include "loader/module_loader.hpp"
|
||
|
|
||
|
class scheduler final : public module
|
||
|
{
|
||
|
public:
|
||
|
static void on_frame(const std::function<void()>& callback);
|
||
|
static void execute();
|
||
|
|
||
|
void pre_destroy() override;
|
||
|
|
||
|
private:
|
||
|
static std::mutex mutex_;
|
||
|
static std::vector<std::function<void()>> callbacks_;
|
||
|
};
|