mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
Kernel: Stop using NonnullLockRefPtrVector
This commit is contained in:
parent
21db2b7b90
commit
7369d0ab5f
41 changed files with 90 additions and 109 deletions
|
@ -20,7 +20,7 @@ static Singleton<ConsoleManagement> s_the;
|
|||
void ConsoleManagement::resolution_was_changed()
|
||||
{
|
||||
for (auto& console : m_consoles) {
|
||||
console.refresh_after_resolution_change();
|
||||
console->refresh_after_resolution_change();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ UNMAP_AFTER_INIT void ConsoleManagement::initialize()
|
|||
if (tty_number > m_consoles.size()) {
|
||||
PANIC("Switch to tty value is invalid: {} ", tty_number);
|
||||
}
|
||||
m_active_console = &m_consoles[tty_number];
|
||||
m_active_console = m_consoles[tty_number];
|
||||
SpinlockLocker lock(m_lock);
|
||||
m_active_console->set_active(true);
|
||||
if (!m_active_console->is_graphical())
|
||||
|
@ -77,7 +77,7 @@ void ConsoleManagement::switch_to(unsigned index)
|
|||
|
||||
bool was_graphical = m_active_console->is_graphical();
|
||||
m_active_console->set_active(false);
|
||||
m_active_console = &m_consoles[index];
|
||||
m_active_console = m_consoles[index];
|
||||
dbgln_if(VIRTUAL_CONSOLE_DEBUG, "Console: Switch to {}", index);
|
||||
|
||||
// Before setting current console to be "active", switch between graphical mode to "textual" mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue