AuroraRuntime/Source/Async/AuSchedular.hpp

20 lines
485 B
C++
Raw Normal View History

/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuSchedular.hpp
Date: 2021-6-26
Author: Reece
***/
2021-06-27 21:25:29 +00:00
#pragma once
namespace Aurora::Async
{
struct IThreadPoolInternal;
2021-06-30 12:00:32 +00:00
void InitSched();
void DeinitSched();
void StartSched();
2021-06-30 12:00:32 +00:00
bool Schedule(AuUInt64 ns, IThreadPoolInternal *pool, WorkerId_t target, AuSPtr<IAsyncRunnable> runnable);
void TerminateSceduledTasks(IThreadPoolInternal *pool, WorkerId_t target);
2021-06-27 21:25:29 +00:00
}