diff options
| author | liamwhite <liamwhite@users.noreply.github.com> | 2023-07-02 17:38:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-02 17:38:14 -0400 |
| commit | daaf03942fb7a3d484941f8b5a09a6349be4b0c0 (patch) | |
| tree | 4a35aff5a9cfa9896762b609720bdc30a0af4785 /src/core/hle/kernel/k_thread.h | |
| parent | 657ab0287d1e7aa42ac01c49c26768e21b2088f7 (diff) | |
| parent | b94e57665369ab1c944c51586912f758ad4b86b1 (diff) | |
Merge pull request #10969 from Morph1984/k-synchronize
kernel: Synchronize
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{}; |
