MCPcopy Create free account
hub / github.com/Bananymous/banan-os / remove_node

Method remove_node

kernel/kernel/Scheduler.cpp:91–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89 void Scheduler::remove_current_from_most_loaded()
90 {
91 ASSERT(Processor::get_interrupt_state() == InterruptState::Disabled);
92
93 for (size_t i = 0; i < m_most_loaded_threads.size(); i++)
94 {
95 if (m_most_loaded_threads[i] != m_current)
96 continue;
97 m_most_loaded_threads[i] = nullptr;
98 return;
99 }
100 }

Callers 2

unblock_threadMethod · 0.45
do_load_balancingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected