1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:07:36 +00:00

Kernel: Assign Lock names in class member initializers.

This commit is contained in:
Andreas Kling 2019-05-02 03:28:20 +02:00
parent 2dc72bb297
commit c3b7ace3e0
12 changed files with 11 additions and 18 deletions

View file

@ -17,7 +17,6 @@ PTYMultiplexer& PTYMultiplexer::the()
PTYMultiplexer::PTYMultiplexer()
: CharacterDevice(5, 2)
, m_lock("PTYMultiplexer")
{
s_the = this;
m_freelist.ensure_capacity(s_max_pty_pairs);

View file

@ -27,6 +27,6 @@ private:
// ^CharacterDevice
virtual const char* class_name() const override { return "PTYMultiplexer"; }
Lock m_lock;
Lock m_lock { "PTYMultiplexer" };
Vector<unsigned> m_freelist;
};