AuroraRuntime/Source/IO/AuIOProcessorTimers.cpp

27 lines
706 B
C++
Raw Normal View History

/***
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
{
2022-08-29 15:46:46 +00:00
bool IOProcessorTimers::Init(IOProcessor *pParent, AuSPtr<AuLoop::ITimer> pLsTicker)
{
2022-08-29 15:46:46 +00:00
this->pParent = pParent;
this->pLsTicker = pLsTicker;
return bool(this->pParent) && bool(pLsTicker);
}
2022-08-29 15:46:46 +00:00
bool IOProcessorTimers::OnFinished(const AuSPtr<AuLoop::ILoopSource> &pSource)
{
2022-08-29 15:46:46 +00:00
this->pParent->ManualTick();
return false;
}
}