summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2021-01-03 16:58:50 -0700
committerAndreas Kling <kling@serenityos.org>2021-01-04 19:13:52 +0100
commit901ef3f1c87d15d2140be8a880250d09286e10a1 (patch)
tree2a8104d378a30cc5b23d61c13c65872c3ea0b6c2 /Kernel/Process.h
parentfb84f0ec9c4d5e1a810dc05965ddbec7ff5d99ec (diff)
downloadserenity-901ef3f1c87d15d2140be8a880250d09286e10a1.zip
Kernel: Specify default memory order for some non-synchronizing Atomics
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h6
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;