AuroraRuntime/Source/IO/IOProcessorTimers.hpp

24 lines
559 B
C++
Raw Normal View History

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: IOProcessorTimers.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;
Utility::RateLimiter nbTicker;
bool Init(IOProcessor *parent, AuSPtr<AuLoop::ITimer> lsTicker);
bool OnFinished(const AuSPtr<AuLoop::ILoopSource> &source) override;
};
}