| 240 | } |
| 241 | |
| 242 | void 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 | |
| 259 | bool MicroThread::HasNoSubThread() |
| 260 | { |
no test coverage detected