mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-12 10:47:59 -05:00
implement wait tree widget
This commit is contained in:
@ -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();
|
||||
|
@ -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;
|
||||
|
@ -665,4 +665,8 @@ void ThreadingShutdown() {
|
||||
ready_queue.clear();
|
||||
}
|
||||
|
||||
const std::vector<SharedPtr<Thread>>& GetThreadList() {
|
||||
return thread_list;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user