[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user