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

Method RemoveSleep

adapter/micro_thread/micro_thread.cpp:802–813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800}
801
802inline void MtFrame::RemoveSleep(MicroThread* thread)
803{
804 ASSERT(thread->HasFlag(MicroThread::SLEEP_LIST));
805 thread->UnsetFlag(MicroThread::SLEEP_LIST);
806
807 int rc = _sleeplist.HeapDelete(thread);
808 if (rc < 0)
809 {
810 MT_ATTR_API(320849, 1); // heap error
811 MTLOG_ERROR("remove heap failed , rc %d", rc);
812 }
813}
814
815inline void MtFrame::InsertIoWait(MicroThread* thread)
816{

Callers

nothing calls this directly

Calls 3

HasFlagMethod · 0.80
UnsetFlagMethod · 0.80
HeapDeleteMethod · 0.80

Tested by

no test coverage detected