2022-06-11 23:01:27 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
2022-12-17 20:14:19 +00:00
|
|
|
File: AuIOProcessorTimers.hpp
|
2022-06-11 23:01:27 +00:00
|
|
|
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;
|
2023-09-28 14:42:09 +00:00
|
|
|
Aurora::Utility::RateLimiter nbTicker;
|
2022-06-11 23:01:27 +00:00
|
|
|
|
2022-06-11 23:52:46 +00:00
|
|
|
bool Init(IOProcessor *parent, AuSPtr<AuLoop::ITimer> lsTicker);
|
2022-06-11 23:01:27 +00:00
|
|
|
|
|
|
|
bool OnFinished(const AuSPtr<AuLoop::ILoopSource> &source) override;
|
|
|
|
};
|
|
|
|
}
|