mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
Kernel: Stop using *LockRefPtr for Process pointers
The only persistent one of these was Thread::m_process and that never changes after initialization. Make it const to enforce this and switch everything over to RefPtr & NonnullRefPtr.
This commit is contained in:
parent
19084ef743
commit
65438d8a85
11 changed files with 42 additions and 42 deletions
|
@ -149,7 +149,7 @@ private:
|
|||
AsyncDeviceSubRequestList m_sub_requests_pending;
|
||||
AsyncDeviceSubRequestList m_sub_requests_complete;
|
||||
WaitQueue m_queue;
|
||||
NonnullLockRefPtr<Process> m_process;
|
||||
NonnullRefPtr<Process> const m_process;
|
||||
void* m_private { nullptr };
|
||||
mutable Spinlock<LockRank::None> m_lock {};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue