kern: non-loop cas-weak -> cas-strong

This commit is contained in:
Michael Scire 2020-08-13 13:55:19 -07:00
parent e1e2be41d6
commit aea200fece

View File

@ -282,7 +282,7 @@ namespace ams::kern {
/* Atomically clear the previous thread if it's our target. */ /* Atomically clear the previous thread if it's our target. */
KThread *compare = thread; KThread *compare = thread;
prev_thread.compare_exchange_weak(compare, nullptr); prev_thread.compare_exchange_strong(compare, nullptr);
} }
} }