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

Method releasePCB

lab8/src/3/src/kernel/program.cpp:164–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void ProgramManager::releasePCB(PCB *program)
165{
166 int index = ((int)program - (int)PCB_SET) / PCB_SIZE;
167 PCB_SET_STATUS[index] = false;
168}
169
170void ProgramManager::MESA_WakeUp(PCB *program)
171{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected