[escher] Add an InvocationTimer subclass

So that we can build invocation-less timers

Change-Id: I412fc8ad040156340caab295719fb83ed25b8b51
This commit is contained in:
Romain Goyet
2017-02-20 18:23:38 +01:00
parent ebb633ff23
commit 3e83fe91f8
7 changed files with 34 additions and 11 deletions

View File

@@ -0,0 +1,11 @@
#include <escher/invocation_timer.h>
InvocationTimer::InvocationTimer(Invocation invocation, uint32_t period) :
Timer(period),
m_invocation(invocation)
{
}
void InvocationTimer::fire() {
m_invocation.perform(this);
}