diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-06-25 03:30:09 +0200 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-07-01 22:21:22 +0200 |
commit | b94e57665369ab1c944c51586912f758ad4b86b1 (patch) | |
tree | c2cf3cdf519d898f510e9679d288d29dbc159e90 /src/core/hle/kernel/k_thread.h | |
parent | Merge pull request #10956 from FernandoS27/pikmin-another-game-ill-hate (diff) | |
download | yuzu-b94e57665369ab1c944c51586912f758ad4b86b1.tar yuzu-b94e57665369ab1c944c51586912f758ad4b86b1.tar.gz yuzu-b94e57665369ab1c944c51586912f758ad4b86b1.tar.bz2 yuzu-b94e57665369ab1c944c51586912f758ad4b86b1.tar.lz yuzu-b94e57665369ab1c944c51586912f758ad4b86b1.tar.xz yuzu-b94e57665369ab1c944c51586912f758ad4b86b1.tar.zst yuzu-b94e57665369ab1c944c51586912f758ad4b86b1.zip |
Diffstat (limited to 'src/core/hle/kernel/k_thread.h')
-rw-r--r-- | src/core/hle/kernel/k_thread.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_thread.h b/src/core/hle/kernel/k_thread.h index dd662b3f8..d178c2453 100644 --- a/src/core/hle/kernel/k_thread.h +++ b/src/core/hle/kernel/k_thread.h @@ -338,6 +338,15 @@ public: return m_parent != nullptr; } + std::span<KSynchronizationObject*> GetSynchronizationObjectBuffer() { + return m_sync_object_buffer.sync_objects; + } + + std::span<Handle> GetHandleBuffer() { + return {m_sync_object_buffer.handles.data() + Svc::ArgumentHandleCountMax, + Svc::ArgumentHandleCountMax}; + } + u16 GetUserDisableCount() const; void SetInterruptFlag(); void ClearInterruptFlag(); @@ -855,6 +864,7 @@ private: u32* m_light_ipc_data{}; KProcessAddress m_tls_address{}; KLightLock m_activity_pause_lock; + SyncObjectBuffer m_sync_object_buffer{}; s64 m_schedule_count{}; s64 m_last_scheduled_tick{}; std::array<QueueEntry, Core::Hardware::NUM_CPU_CORES> m_per_core_priority_queue_entry{}; |