| 74 | } |
| 75 | |
| 76 | void 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 | }; |
no test coverage detected