|
@@ -4,6 +4,7 @@
|
|
|
|
|
|
|
|
#pragma once
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
+#include <atomic>
|
|
|
#include "common/assert.h"
|
|
#include "common/assert.h"
|
|
|
#include "core/hle/kernel/k_spin_lock.h"
|
|
#include "core/hle/kernel/k_spin_lock.h"
|
|
|
#include "core/hle/kernel/k_thread.h"
|
|
#include "core/hle/kernel/k_thread.h"
|
|
@@ -75,7 +76,7 @@ private:
|
|
|
KernelCore& kernel;
|
|
KernelCore& kernel;
|
|
|
KAlignedSpinLock spin_lock{};
|
|
KAlignedSpinLock spin_lock{};
|
|
|
s32 lock_count{};
|
|
s32 lock_count{};
|
|
|
- KThread* owner_thread{};
|
|
|
|
|
|
|
+ std::atomic<KThread*> owner_thread{};
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
} // namespace Kernel
|
|
} // namespace Kernel
|