mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 10:41:30 +00:00
Kernel: Make SlavePTY store pointer to MasterPTY as NonnullRefPtr
No need for LockRefPtr here, as the pointer never changes after initialization.
This commit is contained in:
parent
e69b2572a6
commit
37bfc36601
Notes:
sideshowbarker
2024-07-17 05:02:35 +09:00
Author: https://github.com/awesomekling
Commit: 37bfc36601
Pull-request: https://github.com/SerenityOS/serenity/pull/18188
2 changed files with 4 additions and 4 deletions
|
@ -42,9 +42,9 @@ private:
|
|||
virtual ErrorOr<void> close() override;
|
||||
|
||||
friend class MasterPTY;
|
||||
SlavePTY(MasterPTY&, unsigned index);
|
||||
SlavePTY(NonnullRefPtr<MasterPTY>, unsigned index);
|
||||
|
||||
LockRefPtr<MasterPTY> m_master;
|
||||
NonnullRefPtr<MasterPTY> const m_master;
|
||||
time_t m_time_of_last_write { 0 };
|
||||
unsigned m_index { 0 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue