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

Method Loop

adapter/micro_thread/micro_thread.cpp:654–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652}
653
654int MtFrame::Loop(void* args)
655{
656 MtFrame* mtframe = MtFrame::Instance();
657 MicroThread* daemon = mtframe->DaemonThread();
658
659 mtframe->KqueueDispatch();
660 mtframe->SetLastClock(mtframe->GetSystemMS());
661 mtframe->WakeupTimeout();
662 mtframe->CheckExpired();
663 daemon->SwitchContext();
664
665 return 0;
666}
667
668void MtFrame::DaemonRun(void* args)
669{

Callers

nothing calls this directly

Calls 7

DaemonThreadMethod · 0.80
KqueueDispatchMethod · 0.80
SetLastClockMethod · 0.80
GetSystemMSMethod · 0.80
WakeupTimeoutMethod · 0.80
CheckExpiredMethod · 0.80
SwitchContextMethod · 0.80

Tested by

no test coverage detected