summaryrefslogtreecommitdiff
path: root/Kernel/TTY/PTYMultiplexer.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/PTYMultiplexer.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/PTYMultiplexer.h')
-rw-r--r--Kernel/TTY/PTYMultiplexer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/TTY/PTYMultiplexer.h b/Kernel/TTY/PTYMultiplexer.h
index 7ae972a601..0955fd68dc 100644
--- a/Kernel/TTY/PTYMultiplexer.h
+++ b/Kernel/TTY/PTYMultiplexer.h
@@ -35,7 +35,7 @@ private:
virtual StringView class_name() const override { return "PTYMultiplexer"sv; }
static constexpr size_t max_pty_pairs = 64;
- SpinlockProtected<Vector<unsigned, max_pty_pairs>> m_freelist;
+ SpinlockProtected<Vector<unsigned, max_pty_pairs>> m_freelist { LockRank::None };
};
}