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

Method OutputNotify

adapter/micro_thread/kqueue_proxy.cpp:469–488  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467}
468
469int KqueuerObj::OutputNotify()
470{
471 MicroThread* thread = this->GetOwnerThread();
472 if (NULL == thread)
473 {
474 kqueue_assert(0);
475 MTLOG_ERROR("kqueue fd obj, no thread ptr, wrong");
476 return -1;
477 }
478
479 // Multiple events arrive at the same time
480 if (thread->HasFlag(MicroThread::IO_LIST))
481 {
482 MtFrame* frame = MtFrame::Instance();
483 frame->RemoveIoWait(thread);
484 frame->InsertRunable(thread);
485 }
486
487 return 0;
488}
489
490int KqueuerObj::HangupNotify()
491{

Callers 1

KqueueRcvEventListMethod · 0.45

Calls 4

GetOwnerThreadMethod · 0.95
HasFlagMethod · 0.80
RemoveIoWaitMethod · 0.80
InsertRunableMethod · 0.80

Tested by

no test coverage detected