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

Method WaitNotify

adapter/micro_thread/micro_thread.cpp:867–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865}
866
867void MtFrame::WaitNotify(utime64_t timeout)
868{
869 MicroThread* thread = GetActiveThread();
870
871 thread->SetWakeupTime(timeout + this->GetLastClock());
872 this->InsertIoWait(thread);
873 thread->SwitchContext();
874}
875
876void MtFrame::NotifyThread(MicroThread* thread)
877{

Callers 4

WaitConnectMethod · 0.80
WaitSendMethod · 0.80
WaitRecvMethod · 0.80
mt_thread_waitFunction · 0.80

Calls 4

GetLastClockMethod · 0.95
InsertIoWaitMethod · 0.95
SetWakeupTimeMethod · 0.80
SwitchContextMethod · 0.80

Tested by

no test coverage detected