Reece
44108a322e
[+] TTYConsole::GetPaddingTopOfLog,GetPaddingHeadOfLog,GetPaddingTopOfLog [+ set variants] [+] IO::IOYield() [+] IO::IAsyncTransaction::Failed,GetOSErrorCode() [+] IByteBufferStreamPair [+] IIOBufferedInterceptor [+] IIOBufferedProcessor [+] IIOEventListener [+] IIOPipeEventListener [+] IIOProcessorEventListener [+] IIOProcessorManualInvoker [+] IIOWaitableIOLoopSource [+] IIOWaitableIOTimer [+] IIOWaitableItem [+] IIOWaitableTickLimiter [+] IOAdapterAsyncStream [+] IOAdapterByteBuffer [+] IOAdapterCompression [+] IOAdapterSeeking [*] Cleanup CpuInfo.Linux.cpp [*] Fixup async threadpool some more [*] LSTimer.NT.cpp updates timer object on tick state update, akin to Linux
33 lines
957 B
C++
33 lines
957 B
C++
/***
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
File: IOWaitableIOLoopSource.hpp
|
|
Date: 2022-6-6
|
|
Author: Reece
|
|
***/
|
|
#pragma once
|
|
|
|
namespace Aurora::IO
|
|
{
|
|
struct IOWatachableIOLoopSource : IIOWatachableIOLoopSource
|
|
{
|
|
IOWatachableIOLoopSource(const AuSPtr<Loop::ILoopSource> &source);
|
|
|
|
bool IsRunOnOtherTick() override;
|
|
bool IsRunOnTick() override;
|
|
|
|
bool CanRequestTick() override;
|
|
void OnReportPumper(const AuSPtr<IIOProcessorManualInvoker> &iface) override;
|
|
|
|
bool IsRunOnSelfIO() override;
|
|
AuSPtr<Loop::ILoopSource> GetSelfIOSource() override;
|
|
|
|
bool ApplyRateLimit() override;
|
|
|
|
AuSPtr<Loop::ILoopSource> GetLoopSource() override;
|
|
AuSPtr<Loop::ILoopSource> SetLoopSource(const AuSPtr<Loop::ILoopSource> &ls) override;
|
|
bool IsRunOnSelfIOCheckedOnTimerTick() override;
|
|
|
|
AuSPtr<Loop::ILoopSource> source;
|
|
};
|
|
} |