diff options
author | Andreas Kling <kling@serenityos.org> | 2023-04-02 21:57:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-04 10:33:42 +0200 |
commit | 83b409083b661ea1b326c3ea9b49f1f38842202e (patch) | |
tree | 2ef66fd2fa2eb05a83f981137a24c63a5f34d700 /Kernel/Thread.h | |
parent | ed1253ab900cf8aec5dc57fb4d5311f22cc5ce9f (diff) | |
download | serenity-83b409083b661ea1b326c3ea9b49f1f38842202e.zip |
Kernel: Stop using *LockRefPtr for ProcessGroup
Had to wrap Process::m_pg in a SpinlockProtected for this to be safe.
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r-- | Kernel/Thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h index 69b0e3b30f..ae48eba786 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -644,7 +644,7 @@ public: Disowned }; - WaitBlocker(int wait_options, Variant<Empty, NonnullRefPtr<Process>, NonnullLockRefPtr<ProcessGroup>> waitee, ErrorOr<siginfo_t>& result); + WaitBlocker(int wait_options, Variant<Empty, NonnullRefPtr<Process>, NonnullRefPtr<ProcessGroup>> waitee, ErrorOr<siginfo_t>& result); virtual StringView state_string() const override { return "Waiting"sv; } virtual Type blocker_type() const override { return Type::Wait; } virtual void will_unblock_immediately_without_blocking(UnblockImmediatelyReason) override; @@ -660,7 +660,7 @@ public: int const m_wait_options; ErrorOr<siginfo_t>& m_result; - Variant<Empty, NonnullRefPtr<Process>, NonnullLockRefPtr<ProcessGroup>> const m_waitee; + Variant<Empty, NonnullRefPtr<Process>, NonnullRefPtr<ProcessGroup>> const m_waitee; bool m_did_unblock { false }; bool m_got_sigchild { false }; }; |