[+] GetSharedAsyncApp

This commit is contained in:
Reece Wilson 2022-03-23 16:33:02 +00:00
parent 98a0265486
commit 3507d9bb33
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,7 @@
namespace Aurora::Async
{
AUKN_SYM IAsyncApp *GetAsyncApp();
AUKN_SYM AuSPtr<IAsyncApp> GetSharedAsyncApp();
///
AUKN_SYM WorkerPId_t GetCurrentWorkerPId();

View File

@ -70,6 +70,11 @@ namespace Aurora::Async
return gAsyncApp;
}
AUKN_SYM AuSPtr<IAsyncApp> GetSharedAsyncApp()
{
return AuUnsafeRaiiToShared(gAsyncApp);
}
bool AsyncApp::Spawn(WorkerId_t workerId)
{
return ThreadPool::Spawn(workerId);