mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 06:48:49 +00:00
Kernel: Remove ancient nprocess and nblocked globals.
These were not in sync with reality, and not used anywhere anyway.
This commit is contained in:
parent
ac46e45f6e
commit
a095a90b51
Notes:
sideshowbarker
2024-07-19 14:50:36 +09:00
Author: https://github.com/awesomekling
Commit: a095a90b51
3 changed files with 0 additions and 15 deletions
|
@ -94,12 +94,10 @@ Thread::~Thread()
|
|||
void Thread::unblock()
|
||||
{
|
||||
if (current == this) {
|
||||
system.nblocked--;
|
||||
m_state = Thread::Running;
|
||||
return;
|
||||
}
|
||||
ASSERT(m_state != Thread::Runnable && m_state != Thread::Running);
|
||||
system.nblocked--;
|
||||
m_state = Thread::Runnable;
|
||||
}
|
||||
|
||||
|
@ -117,7 +115,6 @@ void Thread::block(Thread::State new_state)
|
|||
kprintf("Thread::block: %s(%u) block(%u/%s) with state=%u/%s\n", process().name().characters(), process().pid(), new_state, to_string(new_state), state(), to_string(state()));
|
||||
}
|
||||
ASSERT(state() == Thread::Running);
|
||||
system.nblocked++;
|
||||
m_was_interrupted_while_blocked = false;
|
||||
set_state(new_state);
|
||||
Scheduler::yield();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue