| 896 | } |
| 897 | |
| 898 | void MtFrame::SwapDaemonThread() |
| 899 | { |
| 900 | MicroThread* thread = GetActiveThread(); |
| 901 | MicroThread* daemon_thread = this->DaemonThread(); |
| 902 | if(thread != daemon_thread){ |
| 903 | if(thread->SaveContext() == 0){ |
| 904 | this->InsertRunable(thread); |
| 905 | this->SetActiveThread(daemon_thread); |
| 906 | daemon_thread->SetState(MicroThread::RUNNING); |
| 907 | daemon_thread->RestoreContext(); |
| 908 | } |
| 909 | } |
| 910 | } |
| 911 | |
| 912 | bool MtFrame::KqueueSchedule(KqObjList* fdlist, KqueuerObj* fd, int timeout) |
| 913 | { |
no test coverage detected