Jamie Reece Wilson
8944d8bd16
[+] IAsyncTimerCallback [+] ETickType.hpp [+] EWorkPriority.hpp [+] static IThreadPool::GetSelfIOProcessor() [+] static IThreadPool::GetSelfIONetInterface() [+] static IThreadPool::GetSelfIONetWorker() [-] [Source/Async/]AsyncRunnable.hpp [*] Begin encapsulating WorkerPId_t [*] WorkerPId_t no longer take strong pointers to prevent leaks given that these identifiers are copied and kept alive everywhere
30 lines
585 B
C++
30 lines
585 B
C++
/***
|
|
Copyright (C) 2021-2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: IAsyncRunnable.hpp
|
|
Date: 2023-12-06
|
|
Date: 2021-11-2
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::Async
|
|
{
|
|
struct IAsyncRunnable
|
|
{
|
|
virtual void RunAsync() = 0;
|
|
|
|
inline virtual EWorkPriority GetPrio()
|
|
{
|
|
return EWorkPriority::ePriorityNormal;
|
|
};
|
|
|
|
virtual void CancelAsync()
|
|
{ }
|
|
|
|
inline virtual AuOptional<AuPair<AuUInt32, AuUInt32>> QueryFences()
|
|
{
|
|
return {};
|
|
}
|
|
};
|
|
} |