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

Method RemoveSubThread

adapter/micro_thread/micro_thread.cpp:276–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void MicroThread::RemoveSubThread(MicroThread* sub)
277{
278 ASSERT(sub->HasFlag(MicroThread::SUB_LIST));
279 if (sub->HasFlag(MicroThread::SUB_LIST))
280 {
281 TAILQ_REMOVE(&_sub_list, sub, _sub_entry);
282 sub->_parent = NULL;
283 }
284
285 sub->UnsetFlag(MicroThread::SUB_LIST);
286}
287
288ScheduleObj *ScheduleObj::_instance = NULL;
289inline ScheduleObj* ScheduleObj::Instance()

Callers 1

WakeupParentMethod · 0.80

Calls 2

HasFlagMethod · 0.80
UnsetFlagMethod · 0.80

Tested by

no test coverage detected