| 652 | } |
| 653 | |
| 654 | int 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 | |
| 668 | void MtFrame::DaemonRun(void* args) |
| 669 | { |
nothing calls this directly
no test coverage detected