AuroraRuntime/Source/IO/AuIOProcessorItems.hpp
Jamie Reece Wilson ca2c0462ab [*] Continue to refactor allocations of synchronization primitive away
[*] NT: Fix missing CoTaskMemFree leak on startup
[*] Fix ConsoleStd restart bug
2023-06-28 10:33:12 +01:00

42 lines
1.2 KiB
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IOProcessorItems.hpp
Date: 2022-6-6
Author: Reece
***/
#pragma once
namespace Aurora::IO
{
struct IOProcessor;
struct IOProcessorItem;
struct IOProcessorItems
{
AuSPtr<AuLoop::ILSEvent> cvEvent;
AuList<AuSPtr<IOProcessorItem>> allItems;
AuList<AuSPtr<IOProcessorItem>> onTickReceivers;
AuList<AuSPtr<IOProcessorItem>> onOtherReceivers;
AuList<AuSPtr<IOProcessorItem>> registeredIO;
AuThreadPrimitives::CriticalSection mutex;
AuList<AuSPtr<IOProcessorItem>> workSignaled;
AuThreadPrimitives::CriticalSection mutex2;
AuList<AuSPtr<IOProcessorItem>> workSignaled2;
AuList<AuSPtr<IOProcessorItem>> finalizeQueue;
AuList<AuPair<AuSPtr<IOProcessorItem>, bool>> crossThreadAbort;
bool Init();
bool AddFrameTemp(const AuSPtr<IOProcessorItem> &item);
bool AddFrameOrFallback(const AuSPtr<IOProcessorItem> &item);
bool ScheduleFinish(const AuSPtr<IOProcessorItem> &item, bool unsafe);
AuList<AuSPtr<IOProcessorItem>> GetBlockedSignals();
};
}