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

Method SwitchContext

adapter/micro_thread/micro_thread.cpp:125–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void Thread::SwitchContext()
126{
127 if (save_context(_jmpbuf) == 0)
128 {
129 ScheduleObj::Instance()->ScheduleThread();
130 }
131}
132
133
134int Thread::SaveContext()

Callers 3

LoopMethod · 0.80
WaitNotifyMethod · 0.80
KqueueScheduleMethod · 0.80

Calls 1

ScheduleThreadMethod · 0.80

Tested by

no test coverage detected