diff options
| author | Fernando S <fsahmkow27@gmail.com> | 2022-01-03 02:01:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-03 02:01:26 +0100 |
| commit | da8e0f6571095e50aa58ec5c4e3a1bd60f90c581 (patch) | |
| tree | 89fba64305ac670d588576d6dab7e4e57709a11a /src/core/hle/kernel/k_thread.h | |
| parent | 3fa9702952bc90c8ab1a215009a0ee765217459e (diff) | |
| parent | 3a89723d97b8e646cde569030057777813f4371c (diff) | |
Merge pull request #7648 from bunnei/thread-pinning
core: hle: kernel: Implement thread pinning.
Diffstat (limited to 'src/core/hle/kernel/k_thread.h')
| -rw-r--r-- | src/core/hle/kernel/k_thread.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h index c8a08bd71..83dfde69b 100644 --- a/src/core/hle/kernel/k_thread.h +++ b/src/core/hle/kernel/k_thread.h @@ -307,6 +307,10 @@ public: return parent != nullptr; } + u16 GetUserDisableCount() const; + void SetInterruptFlag(); + void ClearInterruptFlag(); + [[nodiscard]] KThread* GetLockOwner() const { return lock_owner; } @@ -490,7 +494,7 @@ public: this->GetStackParameters().disable_count--; } - void Pin(); + void Pin(s32 current_core); void Unpin(); |
