| 110 | } |
| 111 | |
| 112 | void 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 | |
| 125 | void Thread::SwitchContext() |
| 126 | { |
nothing calls this directly
no test coverage detected