Kernel: Add ASSERTion to Process::exit()
This is just so I don't forget that exit can currently only be called on the executing thread itself
This commit is contained in:
parent
2dd09163e6
commit
9b2a577fc3
|
@ -149,6 +149,7 @@ namespace Kernel
|
||||||
s_process_lock.unlock();
|
s_process_lock.unlock();
|
||||||
|
|
||||||
// FIXME: we can't assume this is the current process
|
// FIXME: we can't assume this is the current process
|
||||||
|
ASSERT(&Process::current() == this);
|
||||||
Scheduler::get().set_current_process_done();
|
Scheduler::get().set_current_process_done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue