diff options
author | Tom <tomut@yahoo.com> | 2021-01-03 16:58:50 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-04 19:13:52 +0100 |
commit | 901ef3f1c87d15d2140be8a880250d09286e10a1 (patch) | |
tree | 2a8104d378a30cc5b23d61c13c65872c3ea0b6c2 /Kernel/Process.h | |
parent | fb84f0ec9c4d5e1a810dc05965ddbec7ff5d99ec (diff) | |
download | serenity-901ef3f1c87d15d2140be8a880250d09286e10a1.zip |
Kernel: Specify default memory order for some non-synchronizing Atomics
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r-- | Kernel/Process.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h index df4f332899..d6d6cbd000 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -154,8 +154,8 @@ public: bool is_dead() const { return m_dead; } - bool is_stopped() const { return m_is_stopped.load(AK::MemoryOrder::memory_order_relaxed); } - bool set_stopped(bool stopped) { return m_is_stopped.exchange(stopped, AK::MemoryOrder::memory_order_relaxed); } + bool is_stopped() const { return m_is_stopped; } + bool set_stopped(bool stopped) { return m_is_stopped.exchange(stopped); } bool is_kernel_process() const { return m_is_kernel_process; } bool is_user_process() const { return !m_is_kernel_process; } @@ -595,7 +595,7 @@ private: const bool m_is_kernel_process; bool m_dead { false }; bool m_profiling { false }; - Atomic<bool> m_is_stopped { false }; + Atomic<bool, AK::MemoryOrder::memory_order_relaxed> m_is_stopped { false }; bool m_should_dump_core { false }; RefPtr<Custody> m_executable; |