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

Method WakeupParent

adapter/micro_thread/micro_thread.cpp:242–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242void MicroThread::WakeupParent()
243{
244 MicroThread* parent = this->GetParent();
245 if (parent)
246 {
247 parent->RemoveSubThread(this);
248 if (parent->HasNoSubThread())
249 {
250 ScheduleObj::Instance()->ScheduleUnpend(parent);
251 }
252 }
253 else
254 {
255 MTLOG_ERROR("Sub thread no parent, error");
256 }
257}
258
259bool MicroThread::HasNoSubThread()
260{

Callers 1

RunMethod · 0.95

Calls 4

GetParentMethod · 0.95
RemoveSubThreadMethod · 0.80
HasNoSubThreadMethod · 0.80
ScheduleUnpendMethod · 0.80

Tested by

no test coverage detected