diff options
author | kleines Filmröllchen <filmroellchen@serenityos.org> | 2022-08-18 21:46:28 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-08-19 20:26:47 -0700 |
commit | 4314c25cf2a60f7692821b10a6e759d24ae1a1b6 (patch) | |
tree | 8b6e9c7a58afdca56b7ae02d324433884b8687da /Kernel/Devices/HID/KeyboardDevice.h | |
parent | 4809dc8ec28b8573b250a112b9a7dae4cde10e86 (diff) | |
download | serenity-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/Devices/HID/KeyboardDevice.h')
-rw-r--r-- | Kernel/Devices/HID/KeyboardDevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Devices/HID/KeyboardDevice.h b/Kernel/Devices/HID/KeyboardDevice.h index 273fde6661..6bc3159425 100644 --- a/Kernel/Devices/HID/KeyboardDevice.h +++ b/Kernel/Devices/HID/KeyboardDevice.h @@ -46,7 +46,7 @@ public: protected: KeyboardDevice(); - mutable Spinlock m_queue_lock; + mutable Spinlock m_queue_lock { LockRank::None }; CircularQueue<Event, 16> m_queue; // ^CharacterDevice virtual StringView class_name() const override { return "KeyboardDevice"sv; } |