2023-12-07 09:20:23 +00:00
|
|
|
/***
|
|
|
|
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 {};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|