[kernel] Make default_priority naming consistent

The naming was default_pri in process, but default_priority in
scheduler. Normalize to the longer name.
This commit is contained in:
Justin C. Miller
2021-01-28 01:01:40 -08:00
parent 211a3c2358
commit 71dc332dae
2 changed files with 5 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ process::update()
thread *
process::create_thread(uint8_t priority, bool user)
{
if (priority == default_pri)
if (priority == default_priority)
priority = scheduler::default_priority;
thread *th = new thread(*this, priority);
@@ -123,6 +123,8 @@ process::thread_exited(thread *th)
remove_handle(th->self_handle());
delete th;
// TODO: delete the thread's stack VMA
if (m_threads.count() == 0) {
exit(status);
return true;