2021-06-27 21:33:58 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
2023-11-11 10:11:09 +00:00
|
|
|
File: AuSchedular.hpp
|
2021-06-27 21:33:58 +00:00
|
|
|
Date: 2021-6-26
|
|
|
|
Author: Reece
|
|
|
|
***/
|
2021-06-27 21:25:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Aurora::Async
|
|
|
|
{
|
2021-11-05 17:34:23 +00:00
|
|
|
struct IThreadPoolInternal;
|
|
|
|
|
2021-06-30 12:00:32 +00:00
|
|
|
void InitSched();
|
2021-07-15 16:16:23 +00:00
|
|
|
void DeinitSched();
|
|
|
|
void StartSched();
|
2021-06-30 12:00:32 +00:00
|
|
|
|
2022-08-13 21:59:44 +00:00
|
|
|
bool Schedule(AuUInt64 ns, IThreadPoolInternal *pool, WorkerId_t target, AuSPtr<IAsyncRunnable> runnable);
|
2021-11-05 17:34:23 +00:00
|
|
|
void TerminateSceduledTasks(IThreadPoolInternal *pool, WorkerId_t target);
|
2021-06-27 21:25:29 +00:00
|
|
|
}
|