[+] GetSharedAsyncApp
This commit is contained in:
parent
98a0265486
commit
3507d9bb33
@ -20,6 +20,7 @@
|
|||||||
namespace Aurora::Async
|
namespace Aurora::Async
|
||||||
{
|
{
|
||||||
AUKN_SYM IAsyncApp *GetAsyncApp();
|
AUKN_SYM IAsyncApp *GetAsyncApp();
|
||||||
|
AUKN_SYM AuSPtr<IAsyncApp> GetSharedAsyncApp();
|
||||||
|
|
||||||
///
|
///
|
||||||
AUKN_SYM WorkerPId_t GetCurrentWorkerPId();
|
AUKN_SYM WorkerPId_t GetCurrentWorkerPId();
|
||||||
|
@ -70,6 +70,11 @@ namespace Aurora::Async
|
|||||||
return gAsyncApp;
|
return gAsyncApp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AUKN_SYM AuSPtr<IAsyncApp> GetSharedAsyncApp()
|
||||||
|
{
|
||||||
|
return AuUnsafeRaiiToShared(gAsyncApp);
|
||||||
|
}
|
||||||
|
|
||||||
bool AsyncApp::Spawn(WorkerId_t workerId)
|
bool AsyncApp::Spawn(WorkerId_t workerId)
|
||||||
{
|
{
|
||||||
return ThreadPool::Spawn(workerId);
|
return ThreadPool::Spawn(workerId);
|
||||||
|
Loading…
Reference in New Issue
Block a user