diff options
Diffstat (limited to '')
| -rw-r--r-- | src/core/hle/kernel/k_process.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/k_process.h b/src/core/hle/kernel/k_process.h index d972c9de0..cb93c7e24 100644 --- a/src/core/hle/kernel/k_process.h +++ b/src/core/hle/kernel/k_process.h | |||
| @@ -259,7 +259,7 @@ public: | |||
| 259 | 259 | ||
| 260 | [[nodiscard]] KThread* GetPinnedThread(s32 core_id) const { | 260 | [[nodiscard]] KThread* GetPinnedThread(s32 core_id) const { |
| 261 | ASSERT(0 <= core_id && core_id < static_cast<s32>(Core::Hardware::NUM_CPU_CORES)); | 261 | ASSERT(0 <= core_id && core_id < static_cast<s32>(Core::Hardware::NUM_CPU_CORES)); |
| 262 | return pinned_threads.at(core_id); | 262 | return pinned_threads[core_id]; |
| 263 | } | 263 | } |
| 264 | 264 | ||
| 265 | /// Gets 8 bytes of random data for svcGetInfo RandomEntropy | 265 | /// Gets 8 bytes of random data for svcGetInfo RandomEntropy |
| @@ -369,14 +369,14 @@ private: | |||
| 369 | void PinThread(s32 core_id, KThread* thread) { | 369 | void PinThread(s32 core_id, KThread* thread) { |
| 370 | ASSERT(0 <= core_id && core_id < static_cast<s32>(Core::Hardware::NUM_CPU_CORES)); | 370 | ASSERT(0 <= core_id && core_id < static_cast<s32>(Core::Hardware::NUM_CPU_CORES)); |
| 371 | ASSERT(thread != nullptr); | 371 | ASSERT(thread != nullptr); |
| 372 | ASSERT(pinned_threads.at(core_id) == nullptr); | 372 | ASSERT(pinned_threads[core_id] == nullptr); |
| 373 | pinned_threads[core_id] = thread; | 373 | pinned_threads[core_id] = thread; |
| 374 | } | 374 | } |
| 375 | 375 | ||
| 376 | void UnpinThread(s32 core_id, KThread* thread) { | 376 | void UnpinThread(s32 core_id, KThread* thread) { |
| 377 | ASSERT(0 <= core_id && core_id < static_cast<s32>(Core::Hardware::NUM_CPU_CORES)); | 377 | ASSERT(0 <= core_id && core_id < static_cast<s32>(Core::Hardware::NUM_CPU_CORES)); |
| 378 | ASSERT(thread != nullptr); | 378 | ASSERT(thread != nullptr); |
| 379 | ASSERT(pinned_threads.at(core_id) == thread); | 379 | ASSERT(pinned_threads[core_id] == thread); |
| 380 | pinned_threads[core_id] = nullptr; | 380 | pinned_threads[core_id] = nullptr; |
| 381 | } | 381 | } |
| 382 | 382 | ||