AuroraRuntime/Source/IO/AuIOProcessorTimers.cpp
Reece 4e6f116925 [*] Refactor
[+] IProcessSectionView::GetStart
[+] IProcessSectionView::GetEnd
2022-12-17 20:14:19 +00:00

27 lines
706 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuIOProcessorTimers.cpp
Date: 2022-6-6
Author: Reece
***/
#include <Source/RuntimeInternal.hpp>
#include <Aurora/IO/IOExperimental.hpp>
#include "AuIOProcessorTimers.hpp"
#include "AuIOProcessor.hpp"
namespace Aurora::IO
{
bool IOProcessorTimers::Init(IOProcessor *pParent, AuSPtr<AuLoop::ITimer> pLsTicker)
{
this->pParent = pParent;
this->pLsTicker = pLsTicker;
return bool(this->pParent) && bool(pLsTicker);
}
bool IOProcessorTimers::OnFinished(const AuSPtr<AuLoop::ILoopSource> &pSource)
{
this->pParent->ManualTick();
return false;
}
}