feat: added native scheduler
This commit is contained in:
22
src/detail/scheduler.hpp
Normal file
22
src/detail/scheduler.hpp
Normal 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);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user