MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ScheduleSleep

Method ScheduleSleep

adapter/micro_thread/micro_thread.cpp:319–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319void 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
332void ScheduleObj::SchedulePend()
333{

Callers 1

sleepMethod · 0.80

Calls 3

GetActiveThreadMethod · 0.80
InsertSleepMethod · 0.80
ThreadSchduleMethod · 0.80

Tested by

no test coverage detected