mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
Kernel: Specify default memory order for some non-synchronizing Atomics
This commit is contained in:
parent
fb84f0ec9c
commit
901ef3f1c8
12 changed files with 44 additions and 43 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue