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

Method InitContext

adapter/micro_thread/micro_thread.cpp:112–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void Thread::InitContext()
113{
114 if (save_context(_jmpbuf) != 0)
115 {
116 ScheduleObj::Instance()->ScheduleStartRun();
117 }
118
119 if (_stack != NULL)
120 {
121 replace_esp(_jmpbuf, _stack->_esp);
122 }
123}
124
125void Thread::SwitchContext()
126{

Callers

nothing calls this directly

Calls 1

ScheduleStartRunMethod · 0.80

Tested by

no test coverage detected