1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-08 21:21:48 +00:00
Atmosphere/mesosphere/source/interfaces/IAlarmable.cpp

21 lines
504 B
C++
Raw Normal View History

2018-10-31 20:47:31 +00:00
#include <mesosphere/interfaces/IAlarmable.hpp>
#include <mesosphere/core/KCoreContext.hpp>
#include <mesosphere/interrupts/KAlarm.hpp>
namespace mesosphere
{
void IAlarmable::SetAlarmTimeImpl(const KSystemClock::time_point &alarmTime)
{
this->alarmTime = alarmTime;
KCoreContext::GetCurrentInstance().GetAlarm()->AddAlarmable(*this);
}
void IAlarmable::ClearAlarm()
{
KCoreContext::GetCurrentInstance().GetAlarm()->RemoveAlarmable(*this);
alarmTime = KSystemClock::time_point{};
}
}