MT#62181 wheeltimer: further encapsulate timer

We can now move the timer methods specific to the wheeltimer into
private scope and designate the wheeltimer class as friend.

Change-Id: I2b6bda406ff78733f1909948ed14d18d44b6f3c6
mr13.3.1
Richard Fuchs 1 year ago
parent 4c3e900017
commit aa356b37ac

@ -65,6 +65,13 @@ public:
virtual void fire()=0;
// returns absolute expiry time in microseconds
uint64_t get_absolute_expiry()
{
return expires;
}
private:
void arm(uint64_t relative)
{
if (expires)
@ -89,14 +96,9 @@ public:
}
}
// microseconds
uint64_t get_absolute_expiry()
{
return expires;
}
private:
uint64_t expires; // absolute, microseconds, set after arming timer
friend class _wheeltimer;
};
#include "singleton.h"

Loading…
Cancel
Save