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

Method NotifyThread

adapter/micro_thread/mt_net.cpp:701–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701void CSockLink::NotifyThread(CNetHandler* item, int32_t result)
702{
703 static MtFrame* frame = NULL;
704 if (frame == NULL) {
705 frame = MtFrame::Instance();
706 }
707
708 if (result != RC_SUCCESS)
709 {
710 item->SetErrNo(result);
711 }
712
713 MicroThread* thread = item->GetThread();
714 if ((thread != NULL) && (thread->HasFlag(MicroThread::IO_LIST)))
715 {
716 frame->RemoveIoWait(thread);
717 frame->InsertRunable(thread);
718 }
719}
720
721void CSockLink::NotifyAll(int32_t result)
722{

Callers 3

DispathTcpMethod · 0.95
DispathUdpMethod · 0.95
mt_thread_wakeup_waitFunction · 0.45

Calls 5

SetErrNoMethod · 0.80
GetThreadMethod · 0.80
HasFlagMethod · 0.80
RemoveIoWaitMethod · 0.80
InsertRunableMethod · 0.80

Tested by

no test coverage detected