AuroraRuntime/Source/Async/IAsyncRunnable.hpp

30 lines
585 B
C++
Raw Normal View History

/***
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 {};
}
};
}