summaryrefslogtreecommitdiff
path: root/Kernel/TTY/ConsoleManagement.h
diff options
context:
space:
mode:
authorkleines Filmröllchen <filmroellchen@serenityos.org>2022-08-18 21:46:28 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2022-08-19 20:26:47 -0700
commit4314c25cf2a60f7692821b10a6e759d24ae1a1b6 (patch)
tree8b6e9c7a58afdca56b7ae02d324433884b8687da /Kernel/TTY/ConsoleManagement.h
parent4809dc8ec28b8573b250a112b9a7dae4cde10e86 (diff)
downloadserenity-4314c25cf2a60f7692821b10a6e759d24ae1a1b6.zip
Kernel: Require lock rank for Spinlock construction
All users which relied on the default constructor use a None lock rank for now. This will make it easier to in the future remove LockRank and actually annotate the ranks by searching for None.
Diffstat (limited to 'Kernel/TTY/ConsoleManagement.h')
-rw-r--r--Kernel/TTY/ConsoleManagement.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/TTY/ConsoleManagement.h b/Kernel/TTY/ConsoleManagement.h
index 66afefa542..c2a79176a7 100644
--- a/Kernel/TTY/ConsoleManagement.h
+++ b/Kernel/TTY/ConsoleManagement.h
@@ -39,8 +39,8 @@ public:
private:
NonnullRefPtrVector<VirtualConsole, s_max_virtual_consoles> m_consoles;
VirtualConsole* m_active_console { nullptr };
- Spinlock m_lock;
- RecursiveSpinlock m_tty_write_lock;
+ Spinlock m_lock { LockRank::None };
+ RecursiveSpinlock m_tty_write_lock { LockRank::None };
};
};