mirror of
https://github.com/espressif/openthread.git
synced 2026-10-04 14:57:38 +00:00
[supervision] Fix timer callbacks to follow the new model (#1974)
This commit is contained in:
committed by
Jonathan Hui
parent
38c95256ca
commit
52a11d0a93
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user