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

Method InputNotify

adapter/micro_thread/kqueue_proxy.cpp:449–467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449int 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
469int KqueuerObj::OutputNotify()
470{

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