MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / releasePCB

Method releasePCB

lab8/src/6/src/kernel/program.cpp:169–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void ProgramManager::releasePCB(PCB *program)
170{
171 int index = ((int)program - (int)PCB_SET) / PCB_SIZE;
172 PCB_SET_STATUS[index] = false;
173 this->allPrograms.erase(&(program->tagInAllList));
174}
175
176void ProgramManager::MESA_WakeUp(PCB *program)
177{

Callers

nothing calls this directly

Calls 1

eraseMethod · 0.45

Tested by

no test coverage detected