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

Method CheckExpired

adapter/micro_thread/micro_thread.cpp:731–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729}
730
731void MtFrame::CheckExpired()
732{
733 static utime64_t check_time = 0;
734
735 if (_timer != NULL)
736 {
737 _timer->check_expired();
738 }
739
740 utime64_t now = GetLastClock();
741
742 if ((now - check_time) > 1000)
743 {
744 CNetMgr::Instance()->RecycleObjs(now);
745 check_time = now;
746 }
747}
748
749void MtFrame::WakeupTimeout()
750{

Callers 1

LoopMethod · 0.80

Calls 2

check_expiredMethod · 0.80
RecycleObjsMethod · 0.80

Tested by

no test coverage detected