20 lines
483 B
C++
20 lines
483 B
C++
/***
|
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: Schedular.hpp
|
|
Date: 2021-6-26
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::Async
|
|
{
|
|
struct IThreadPoolInternal;
|
|
|
|
void InitSched();
|
|
void DeinitSched();
|
|
void StartSched();
|
|
|
|
bool Schedule(AuUInt64 ns, IThreadPoolInternal *pool, WorkerId_t target, AuSPtr<IAsyncRunnable> runnable);
|
|
void TerminateSceduledTasks(IThreadPoolInternal *pool, WorkerId_t target);
|
|
} |