25 lines
673 B
C++
25 lines
673 B
C++
|
/***
|
||
|
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
||
|
|
||
|
File: IAsyncApp.hpp
|
||
|
Date: 2021-11-1
|
||
|
Author: Reece
|
||
|
***/
|
||
|
#pragma once
|
||
|
|
||
|
namespace Aurora::Async
|
||
|
{
|
||
|
struct IAsyncApp : IThreadPool
|
||
|
{
|
||
|
// Main thread logic
|
||
|
|
||
|
/// Initializes the async application before the hand-off
|
||
|
virtual void Start() = 0;
|
||
|
|
||
|
/// Hand off
|
||
|
virtual void Main() = 0;
|
||
|
|
||
|
/// Console config
|
||
|
virtual void SetConsoleCommandDispatcher(WorkerId_t id) = 0;
|
||
|
};
|
||
|
}
|