Browse Source
clang-format: NamespaceIndentation = NONE
* this is just one of a many, oh god
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
lock-term-1
Caio Oliveira
3 weeks ago
No known key found for this signature in database
GPG Key ID: AAAE6C7FD4186B0C
1 changed files with
1091 additions and
1090 deletions
-
src/core/hle/kernel/k_thread.cpp
|
|
@ -598,7 +598,8 @@ namespace Kernel { |
|
|
|
|
|
|
|
|
const s64 value = this->GetCpuTime() - switch_tick; |
|
|
const s64 value = this->GetCpuTime() - switch_tick; |
|
|
auto& memory = this->GetOwnerProcess()->GetMemory(); |
|
|
auto& memory = this->GetOwnerProcess()->GetMemory(); |
|
|
memory.Write64(m_tls_address + offsetof(ThreadLocalRegion, thread_cpu_time), static_cast<u64>(value)); |
|
|
|
|
|
|
|
|
memory.Write64(m_tls_address + offsetof(ThreadLocalRegion, thread_cpu_time), |
|
|
|
|
|
static_cast<u64>(value)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Result KThread::GetCoreMask(s32* out_ideal_core, u64* out_affinity_mask) { |
|
|
Result KThread::GetCoreMask(s32* out_ideal_core, u64* out_affinity_mask) { |
|
|
@ -1466,4 +1467,4 @@ namespace Kernel { |
|
|
GetCurrentThread(m_kernel).EnableDispatch(); |
|
|
GetCurrentThread(m_kernel).EnableDispatch(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} // namespace Kernel
|