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

Method InsertPend

adapter/micro_thread/micro_thread.cpp:852–858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852void MtFrame::InsertPend(MicroThread* thread)
853{
854 ASSERT(!thread->HasFlag(MicroThread::PEND_LIST));
855 thread->SetFlag(MicroThread::PEND_LIST);
856 TAILQ_INSERT_TAIL(&_pend_list, thread, _entry);
857 thread->SetState(MicroThread::PENDING);
858}
859
860void MtFrame::RemovePend(MicroThread* thread)
861{

Callers 1

SchedulePendMethod · 0.80

Calls 3

HasFlagMethod · 0.80
SetFlagMethod · 0.80
SetStateMethod · 0.80

Tested by

no test coverage detected