diff --git a/Lilu/Headers/kern_util.hpp b/Lilu/Headers/kern_util.hpp index 259d5c83..c9d298fc 100644 --- a/Lilu/Headers/kern_util.hpp +++ b/Lilu/Headers/kern_util.hpp @@ -709,7 +709,7 @@ class ThreadLocal { for (size_t i = 0; ptr == nullptr && i < N; i++) { thread_t nullThread = nullptr; if (atomic_compare_exchange_strong_explicit(&threads[i], &nullThread, currThread, - memory_order_acq_rel, memory_order_acq_rel)) + memory_order_acq_rel, memory_order_acquire)) ptr = &values[i]; }