MCPcopy Create free account
hub / github.com/F-Stack/f-stack / check_expired

Method check_expired

adapter/micro_thread/heap_timer.cpp:76–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76void CTimerMng::check_expired()
77{
78 if (!_heap) {
79 return;
80 }
81
82 utime64_t now = MtFrame::Instance()->GetLastClock();
83 CTimerNotify* timer = dynamic_cast<CTimerNotify*>(_heap->HeapTop());
84 while (timer && (timer->get_expired_time() <= now))
85 {
86 _heap->HeapDelete(timer);
87 timer->timer_notify();
88 timer = dynamic_cast<CTimerNotify*>(_heap->HeapTop());
89 }
90};

Callers 1

CheckExpiredMethod · 0.80

Calls 5

GetLastClockMethod · 0.80
HeapTopMethod · 0.80
get_expired_timeMethod · 0.80
HeapDeleteMethod · 0.80
timer_notifyMethod · 0.45

Tested by

no test coverage detected