| 709 | } |
| 710 | |
| 711 | void MtFrame::ThreadSchdule() |
| 712 | { |
| 713 | MicroThread* thread = NULL; |
| 714 | MtFrame* mtframe = MtFrame::Instance(); |
| 715 | |
| 716 | if (mtframe->_runlist.empty()) |
| 717 | { |
| 718 | thread = mtframe->DaemonThread(); |
| 719 | } |
| 720 | else |
| 721 | { |
| 722 | thread = mtframe->_runlist.front(); |
| 723 | mtframe->RemoveRunable(thread); |
| 724 | } |
| 725 | |
| 726 | this->SetActiveThread(thread); |
| 727 | thread->SetState(MicroThread::RUNNING); |
| 728 | thread->RestoreContext(); |
| 729 | } |
| 730 | |
| 731 | void MtFrame::CheckExpired() |
| 732 | { |
no test coverage detected