| 317 | } |
| 318 | |
| 319 | void ScheduleObj::ScheduleSleep() |
| 320 | { |
| 321 | MtFrame* frame = MtFrame::Instance(); |
| 322 | MicroThread* thread = frame->GetActiveThread(); |
| 323 | if ((!frame) || (!thread)) { |
| 324 | MTLOG_ERROR("frame and act thread null, %p, %p", frame, thread); |
| 325 | return; |
| 326 | } |
| 327 | |
| 328 | frame->InsertSleep(thread); |
| 329 | frame->ThreadSchdule(); |
| 330 | } |
| 331 | |
| 332 | void ScheduleObj::SchedulePend() |
| 333 | { |
no test coverage detected