mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-02 01:08:24 +00:00
exo: use the fancy new optimal atomics
This commit is contained in:
parent
d74f364107
commit
c6d7174dd3
2 changed files with 23 additions and 11 deletions
|
@ -22,7 +22,7 @@ namespace ams::secmon {
|
|||
|
||||
constexpr inline uintptr_t PMC = MemoryRegionVirtualDevicePmc.GetAddress();
|
||||
|
||||
constinit std::atomic_bool g_is_locked = false;
|
||||
constinit util::Atomic<bool> g_is_locked{false};
|
||||
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ namespace ams::secmon {
|
|||
}
|
||||
|
||||
/* Acquire exclusive access to exception handling logic. */
|
||||
if (!g_is_locked.exchange(true)) {
|
||||
if (!g_is_locked.Exchange(true)) {
|
||||
/* Invoke the exception handler impl. */
|
||||
ExceptionHandlerImpl(lr, sp);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue