[supervision] Fix timer callbacks to follow the new model (#1974)

This commit is contained in:
Abtin Keshavarzian
2017-07-11 10:49:35 -07:00
committed by Jonathan Hui
parent 38c95256ca
commit 52a11d0a93
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -133,7 +133,7 @@ void ChildSupervisor::UpdateOnSend(Child &aChild)
aChild.ResetSecondsSinceLastSupervision();
}
void ChildSupervisor::HandleTimer(TimerMilli &aTimer)
void ChildSupervisor::HandleTimer(Timer &aTimer)
{
GetOwner(aTimer).HandleTimer();
}
@@ -183,7 +183,7 @@ ChildSupervisor &ChildSupervisor::GetOwner(const Context &aContext)
SupervisionListener::SupervisionListener(ThreadNetif &aThreadNetif) :
ThreadNetifLocator(aThreadNetif),
mTimer(aThreadNetif.GetIp6().mTimerMilliScheduler, &SupervisionListener::HandleTimer, this),
mTimer(aThreadNetif.GetIp6(), &SupervisionListener::HandleTimer, this),
mTimeout(0)
{
SetTimeout(kDefaultTimeout);
@@ -240,7 +240,7 @@ void SupervisionListener::RestartTimer(void)
}
}
void SupervisionListener::HandleTimer(TimerMilli &aTimer)
void SupervisionListener::HandleTimer(Timer &aTimer)
{
GetOwner(aTimer).HandleTimer();
}
+2 -2
View File
@@ -156,7 +156,7 @@ private:
};
void SendMessage(Child &aChild);
static void HandleTimer(TimerMilli &aTimer);
static void HandleTimer(Timer &aTimer);
void HandleTimer(void);
static ChildSupervisor &GetOwner(const Context &aContext);
@@ -248,7 +248,7 @@ private:
};
void RestartTimer(void);
static void HandleTimer(TimerMilli &aTimer);
static void HandleTimer(Timer &aTimer);
void HandleTimer(void);
static SupervisionListener &GetOwner(const Context &aContext);