AuroraRuntime/Source/IO/AuIOProcessorTimers.hpp

24 lines
569 B
C++
Raw Normal View History

/***
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
{
2022-08-29 15:46:46 +00:00
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;
};
}