feat: added native scheduler

This commit is contained in:
2025-11-18 20:37:14 +01:00
parent b55bd2f783
commit e094c35437
2 changed files with 437 additions and 0 deletions

22
src/detail/scheduler.hpp Normal file
View File

@@ -0,0 +1,22 @@
#pragma once
#include <functional>
namespace fxn
{
class NativeScheduler
{
private:
struct Impl;
Impl* m_Impl;
private:
NativeScheduler();
~NativeScheduler();
public:
static NativeScheduler& GetInstance();
public:
void Schedule(const std::function<void()>& task);
};
}