| 55 | } |
| 56 | |
| 57 | void UdpSessionNtfy::NotifyWriteWait() |
| 58 | { |
| 59 | MtFrame* frame = MtFrame::Instance(); |
| 60 | SessionProxy* proxy = NULL; |
| 61 | MicroThread* thread = NULL; |
| 62 | TAILQ_FOREACH(proxy, &_write_list, _write_entry) |
| 63 | { |
| 64 | proxy->SetRcvEvents(KQ_EVENT_WRITE); |
| 65 | |
| 66 | thread = proxy->GetOwnerThread(); |
| 67 | if (thread && thread->HasFlag(MicroThread::IO_LIST)) |
| 68 | { |
| 69 | frame->RemoveIoWait(thread); |
| 70 | frame->InsertRunable(thread); |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | int UdpSessionNtfy::CreateSocket() |
| 76 | { |
nothing calls this directly
no test coverage detected