| 447 | } |
| 448 | |
| 449 | int KqueuerObj::InputNotify() |
| 450 | { |
| 451 | MicroThread* thread = this->GetOwnerThread(); |
| 452 | if (thread == NULL) |
| 453 | { |
| 454 | kqueue_assert(0); |
| 455 | MTLOG_ERROR("kqueue fd obj, no thread ptr, wrong"); |
| 456 | return -1; |
| 457 | } |
| 458 | |
| 459 | if (thread->HasFlag(MicroThread::IO_LIST)) |
| 460 | { |
| 461 | MtFrame* frame = MtFrame::Instance(); |
| 462 | frame->RemoveIoWait(thread); |
| 463 | frame->InsertRunable(thread); |
| 464 | } |
| 465 | |
| 466 | return 0; |
| 467 | } |
| 468 | |
| 469 | int KqueuerObj::OutputNotify() |
| 470 | { |
no test coverage detected