31 lines
955 B
C++
31 lines
955 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::CompletionGroup::ICompletionGroup> pGroup;
|
|
|
|
AuSPtr<AuIO::CompletionGroup::ICompletionGroup> GetIOGroup(AuWorkerPId_t pid);
|
|
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);
|
|
};
|
|
} |