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

Method NotifyWriteWait

adapter/micro_thread/mt_notify.cpp:57–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void 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
75int UdpSessionNtfy::CreateSocket()
76{

Callers

nothing calls this directly

Calls 5

SetRcvEventsMethod · 0.80
HasFlagMethod · 0.80
RemoveIoWaitMethod · 0.80
InsertRunableMethod · 0.80
GetOwnerThreadMethod · 0.45

Tested by

no test coverage detected