Reece
7fde7d04fb
[+] IIOBufferedStreamAvailable callback [+] IIOProcessor singleshot work items / IIOProcessorWorkUnit [+] IOPipeCallback description of a pipes destination [+] IOPipeInputData description of a pipes source [+] IOPipeRequest, IOPipeRequestAIO, IOPipeRequestBasic [+] IPipeBackend hooks for on start/end hooks of IOPipeRequestBasics [*] Update IOAdapaterAsyncStream implementation to better support caller buffering [*] Updated IAsyncStreamReader to include a warm/dequeue API for direct async usage [*] Fix NT IO regressions [*] Fix ThreadPool shutdown on an unregistered thread [*] Fix race condition in Async.NT.cpp & fix signalable state to closely match Linux (dunno how this was passing before) [*] Refactor IOProcessorWorkUnit -> IIOProcessorWorkUnit [*] Update experimental header to include the changes
39 lines
1.0 KiB
C++
39 lines
1.0 KiB
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: IOPipeInputData.hpp
|
|
Date: 2022-6-20
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::IO
|
|
{
|
|
struct IIOWaitableItem;
|
|
|
|
struct IOPipeInputData
|
|
{
|
|
/**
|
|
* @brief IO trigger
|
|
*/
|
|
AuSPtr<IIOWaitableItem> watchItem;
|
|
|
|
/**
|
|
* @brief Input source
|
|
*/
|
|
AuSPtr<IStreamReader> reader;
|
|
|
|
/**
|
|
* @brief Callbacks
|
|
*/
|
|
AuSPtr<IPipeBackend> backend;
|
|
|
|
/**
|
|
* @brief Enables aggressive stream consumption, allowing for bias towards clients if they were to send a lot of data (including dos)
|
|
* Instead of reading the input stream once, so long as the output stream written paremeter yields a non-zero number, bytes
|
|
* will continue to pump through the writer. Breakdown of the pipe is expected on reader oversaturation as defined by the
|
|
* IOPipeRequest
|
|
*/
|
|
bool bShouldReadUntilZero {};
|
|
};
|
|
} |