diff options
| author | bunnei <bunneidev@gmail.com> | 2022-06-26 11:38:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-26 11:38:48 -0700 |
| commit | abfd690601eaa567b60c5eb844a688fe85e7dcea (patch) | |
| tree | bb7cc7e8746ffedb0f8ddf2ca82c19ae41f5c1be /src/core/hle/kernel/kernel.h | |
| parent | b321c3937137120f27a54ae01decf94f7fa781d1 (diff) | |
| parent | 2c56e94702e897c609711d82057d8267d8f4d0b3 (diff) | |
Merge pull request #8475 from liamwhite/x18
kernel: make current thread pointer thread local
Diffstat (limited to 'src/core/hle/kernel/kernel.h')
| -rw-r--r-- | src/core/hle/kernel/kernel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 4e7beab0e..aa0ebaa02 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -226,6 +226,9 @@ public: /// Gets the current host_thread/guest_thread pointer. KThread* GetCurrentEmuThread() const; + /// Sets the current guest_thread pointer. + void SetCurrentEmuThread(KThread* thread); + /// Gets the current host_thread handle. u32 GetCurrentHostThreadID() const; |
