AuroraRuntime/Source/IO/AuIOProcessorTimers.hpp

24 lines
569 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuIOProcessorTimers.hpp
Date: 2022-6-6
Author: Reece
***/
#pragma once
namespace Aurora::IO
{
struct IOProcessor;
struct IOProcessorTimers : AuLoop::ILoopSourceSubscriber
{
IOProcessor *pParent {};
AuSPtr<AuLoop::ITimer> pLsTicker;
Aurora::Utility::RateLimiter nbTicker;
bool Init(IOProcessor *parent, AuSPtr<AuLoop::ITimer> lsTicker);
bool OnFinished(const AuSPtr<AuLoop::ILoopSource> &source) override;
};
}