Jamie Reece Wilson
a189151c59
[+] AuAsync::IThreadPool::GetIONetInterface [+] AuAsync::IThreadPool::GetIONetWorker [+] AuAsync::IWorkItem::SetSchedByLoopSource
29 lines
804 B
C++
29 lines
804 B
C++
/***
|
|
Copyright (C) 2023 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: AuThreadStateSingletons.hpp
|
|
Date: 2023-11-04
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
#include <Aurora/IO/Net/NetExperimental.hpp>
|
|
|
|
namespace Aurora::Async
|
|
{
|
|
struct ThreadStateSingletons
|
|
{
|
|
AuCriticalSection mutex;
|
|
|
|
AuSPtr<AuIO::IIOProcessor> pIOProcessors;
|
|
|
|
AuSPtr<AuIO::IIOProcessor> pIOProcessor;
|
|
AuSPtr<AuIO::Net::INetInterface> pNetInterface;
|
|
AuSPtr<AuIO::Net::INetWorker> pNetWorker;
|
|
|
|
AuSPtr<AuIO::IIOProcessor> GetIOProcessor(AuWorkerPId_t pid);
|
|
AuSPtr<AuIO::Net::INetInterface> GetIONetInterface(AuWorkerPId_t pid);
|
|
AuSPtr<AuIO::Net::INetWorker> GetIONetWorker(AuWorkerPId_t pid);
|
|
void TryInitNet(AuWorkerPId_t pid);
|
|
};
|
|
} |