2022-06-11 23:01:27 +00:00
|
|
|
/***
|
|
|
|
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;
|
2022-06-11 23:01:27 +00:00
|
|
|
Utility::RateLimiter nbTicker;
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|