| 666 | } |
| 667 | |
| 668 | void MtFrame::DaemonRun(void* args) |
| 669 | { |
| 670 | /* |
| 671 | MtFrame* mtframe = MtFrame::Instance(); |
| 672 | MicroThread* daemon = mtframe->DaemonThread(); |
| 673 | |
| 674 | while (true) { |
| 675 | mtframe->KqueueDispatch(); |
| 676 | mtframe->SetLastClock(mtframe->GetSystemMS()); |
| 677 | mtframe->WakeupTimeout(); |
| 678 | mtframe->CheckExpired(); |
| 679 | daemon->SwitchContext(); |
| 680 | } |
| 681 | */ |
| 682 | ff_run(MtFrame::Loop, NULL); |
| 683 | } |
| 684 | |
| 685 | MicroThread *MtFrame::GetRootThread() |
| 686 | { |