diff options
author | wwylele <wwylele@gmail.com> | 2016-04-08 18:28:54 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2016-09-22 07:52:52 +0200 |
commit | f69a543110703e09adc830bbc65e3c39be0cc52b (patch) | |
tree | 6698d241fb60109d5eae43ff6ece00fef9aa91d8 /src/core/hle/kernel | |
parent | Merge pull request #2099 from citra-emu/fix-clang-format (diff) | |
download | yuzu-f69a543110703e09adc830bbc65e3c39be0cc52b.tar yuzu-f69a543110703e09adc830bbc65e3c39be0cc52b.tar.gz yuzu-f69a543110703e09adc830bbc65e3c39be0cc52b.tar.bz2 yuzu-f69a543110703e09adc830bbc65e3c39be0cc52b.tar.lz yuzu-f69a543110703e09adc830bbc65e3c39be0cc52b.tar.xz yuzu-f69a543110703e09adc830bbc65e3c39be0cc52b.tar.zst yuzu-f69a543110703e09adc830bbc65e3c39be0cc52b.zip |
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 4 | ||||
-rw-r--r-- | src/core/hle/kernel/kernel.h | 3 | ||||
-rw-r--r-- | src/core/hle/kernel/thread.cpp | 4 | ||||
-rw-r--r-- | src/core/hle/kernel/thread.h | 5 |
4 files changed, 16 insertions, 0 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 9a2c8ce05..9e1795927 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -40,6 +40,10 @@ void WaitObject::WakeupAllWaitingThreads() { HLE::Reschedule(__func__); } +const std::vector<SharedPtr<Thread>>& WaitObject::GetWaitingThreads() const { + return waiting_threads; +} + HandleTable::HandleTable() { next_generation = 1; Clear(); diff --git a/src/core/hle/kernel/kernel.h b/src/core/hle/kernel/kernel.h index 0e95f7ff0..40c78b436 100644 --- a/src/core/hle/kernel/kernel.h +++ b/src/core/hle/kernel/kernel.h @@ -149,6 +149,9 @@ public: /// Wake up all threads waiting on this object void WakeupAllWaitingThreads(); + /// Get a const reference to the waiting threads list for debug use + const std::vector<SharedPtr<Thread>>& GetWaitingThreads() const; + private: /// Threads waiting for this object to become available std::vector<SharedPtr<Thread>> waiting_threads; diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 4486a812c..c4eeeee56 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -665,4 +665,8 @@ void ThreadingShutdown() { ready_queue.clear(); } +const std::vector<SharedPtr<Thread>>& GetThreadList() { + return thread_list; +} + } // namespace diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index f63131716..e0ffcea8a 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h @@ -236,4 +236,9 @@ void ThreadingInit(); */ void ThreadingShutdown(); +/** + * Get a const reference to the thread list for debug use + */ +const std::vector<SharedPtr<Thread>>& GetThreadList(); + } // namespace |