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

Method SchedulePend

adapter/micro_thread/micro_thread.cpp:332–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332void ScheduleObj::SchedulePend()
333{
334 MtFrame* frame = MtFrame::Instance();
335 MicroThread* thread = frame->GetActiveThread();
336 if ((!frame) || (!thread)) {
337 MTLOG_ERROR("frame and act thread null, %p, %p", frame, thread);
338 return;
339 }
340
341 frame->InsertPend(thread);
342 frame->ThreadSchdule();
343}
344
345void ScheduleObj::ScheduleUnpend(void* pthread)
346{

Callers 1

WaitMethod · 0.80

Calls 3

GetActiveThreadMethod · 0.80
InsertPendMethod · 0.80
ThreadSchduleMethod · 0.80

Tested by

no test coverage detected