From f77a4fbf9834629af000801793de4b6fc1f134b0 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 13 Aug 2020 13:55:19 -0700 Subject: [PATCH] kern: non-loop cas-weak -> cas-strong --- libraries/libmesosphere/source/kern_k_scheduler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libmesosphere/source/kern_k_scheduler.cpp b/libraries/libmesosphere/source/kern_k_scheduler.cpp index a4adf140b..0a7287129 100644 --- a/libraries/libmesosphere/source/kern_k_scheduler.cpp +++ b/libraries/libmesosphere/source/kern_k_scheduler.cpp @@ -282,7 +282,7 @@ namespace ams::kern { /* Atomically clear the previous thread if it's our target. */ KThread *compare = thread; - prev_thread.compare_exchange_weak(compare, nullptr); + prev_thread.compare_exchange_strong(compare, nullptr); } }