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

Method InsertRunable

adapter/micro_thread/micro_thread.cpp:832–840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

830}
831
832void MtFrame::InsertRunable(MicroThread* thread)
833{
834 ASSERT(!thread->HasFlag(MicroThread::RUN_LIST));
835 thread->SetFlag(MicroThread::RUN_LIST);
836
837 thread->SetState(MicroThread::RUNABLE);
838 _runlist.push(thread);
839 _waitnum++;
840}
841
842inline void MtFrame::RemoveRunable(MicroThread* thread)
843{

Callers 10

NotifyThreadMethod · 0.95
SwapDaemonThreadMethod · 0.95
NotifyWriteWaitMethod · 0.80
InputNotifyMethod · 0.80
NotifyThreadMethod · 0.80
ScheduleUnpendMethod · 0.80
CreateThreadMethod · 0.80
InputNotifyMethod · 0.80
OutputNotifyMethod · 0.80
mt_exec_all_taskFunction · 0.80

Calls 3

HasFlagMethod · 0.80
SetFlagMethod · 0.80
SetStateMethod · 0.80

Tested by

no test coverage detected