Add mesosphere (VERY VERY WIP)
This commit is contained in:
20
mesosphere/source/interfaces/IAlarmable.cpp
Normal file
20
mesosphere/source/interfaces/IAlarmable.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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{};
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user